Improve performance on findMany queries (#4334)

* Improve performance on findMany queries

* Fix
This commit is contained in:
Charles Bochet
2024-03-06 13:59:42 +01:00
committed by GitHub
parent b2210bd418
commit e7857d7fa3
9 changed files with 64 additions and 77 deletions

View File

@ -36,7 +36,7 @@ export const useAddRecordInCache = ({
.map((field) =>
mapFieldMetadataToGraphQLQuery({
field,
maxDepthForRelations: MAX_QUERY_DEPTH_FOR_CACHE_INJECTION,
depth: MAX_QUERY_DEPTH_FOR_CACHE_INJECTION,
}),
)
.join('\n')}

View File

@ -29,7 +29,7 @@ export const useGenerateFindDuplicateRecordsQuery = () => {
.map((field) =>
mapFieldMetadataToGraphQLQuery({
field,
maxDepthForRelations: depth,
depth,
}),
)
.join('\n')}

View File

@ -74,7 +74,7 @@ export const useGenerateFindManyRecordsForMultipleMetadataItemsQuery = ({
.map((field) =>
mapFieldMetadataToGraphQLQuery({
field,
maxDepthForRelations: depth,
depth,
}),
)
.join('\n')}

View File

@ -31,7 +31,7 @@ export const useGenerateFindManyRecordsQuery = () => {
.map((field) =>
mapFieldMetadataToGraphQLQuery({
field,
maxDepthForRelations: depth,
depth,
}),
)
.join('\n')}

View File

@ -28,7 +28,7 @@ export const useGenerateFindOneRecordQuery = () => {
.map((field) =>
mapFieldMetadataToGraphQLQuery({
field,
maxDepthForRelations: depth,
depth,
}),
)
.join('\n')}