Standards Docs

useObject

Fetch a single object schema by ID

Fetch a single object schema by ID

Signature

(objectId: string, options?: UseObjectOptions | undefined): UseQueryResult<ObjectDefinition, Error>

Examples

```tsx
const { data: object } = useObject("obj-123");

if (object) {
  console.log(object.name, object.attributes);
}

On this page