ReferenceReact
useResolveRelations
Resolve relation IDs to their display labels Uses the RelationBatcher for optimal performance - multiple calls within a single frame (16ms) are batched into a single API request.
Resolve relation IDs to their display labels
Uses the RelationBatcher for optimal performance - multiple calls within a single frame (16ms) are batched into a single API request.
Signature
(attributeId: string, ids: string[], options?: UseResolveRelationsOptions | undefined): UseQueryResult<RelationOption[], Error>Examples
```tsx
const { data: resolved } = useResolveRelations("attr-123", ["rec-1", "rec-2"]);
// resolved = [{ id: "rec-1", label: "Company A", objectName: "companies", ... }, ...]