Implement eager load relations on graphqlQueries (#4391)
* Implement eager load relations on graphqlQueries * Fix tests * Fixes * Fixes
This commit is contained in:
@ -40,6 +40,7 @@ export const EMPTY_MUTATION = gql`
|
||||
export const useObjectMetadataItem = (
|
||||
{ objectNameSingular }: ObjectMetadataItemIdentifier,
|
||||
depth?: number,
|
||||
eagerLoadedRelations?: Record<string, any>,
|
||||
) => {
|
||||
const currentWorkspace = useRecoilValue(currentWorkspaceState());
|
||||
|
||||
@ -90,6 +91,7 @@ export const useObjectMetadataItem = (
|
||||
const findManyRecordsQuery = generateFindManyRecordsQuery({
|
||||
objectMetadataItem,
|
||||
depth,
|
||||
eagerLoadedRelations,
|
||||
});
|
||||
|
||||
const generateFindDuplicateRecordsQuery =
|
||||
|
||||
Reference in New Issue
Block a user