Improve performances of metadata endpoint (#4347)

This commit is contained in:
Charles Bochet
2024-03-06 18:09:38 +01:00
committed by GitHub
parent 577de7240c
commit e5c09deae5
5 changed files with 0 additions and 7 deletions

View File

@ -72,7 +72,6 @@ export const FIND_MANY_OBJECT_METADATA_ITEMS = gql`
startCursor startCursor
endCursor endCursor
} }
totalCount
} }
} }
} }
@ -82,7 +81,6 @@ export const FIND_MANY_OBJECT_METADATA_ITEMS = gql`
startCursor startCursor
endCursor endCursor
} }
totalCount
} }
} }
`; `;

View File

@ -72,7 +72,6 @@ export const query = gql`
startCursor startCursor
endCursor endCursor
} }
totalCount
} }
} }
} }
@ -82,7 +81,6 @@ export const query = gql`
startCursor startCursor
endCursor endCursor
} }
totalCount
} }
} }
`; `;

View File

@ -43,7 +43,6 @@ import { UpdateFieldInput } from './dtos/update-field.input';
CreateDTOClass: CreateFieldInput, CreateDTOClass: CreateFieldInput,
UpdateDTOClass: UpdateFieldInput, UpdateDTOClass: UpdateFieldInput,
ServiceClass: FieldMetadataService, ServiceClass: FieldMetadataService,
enableTotalCount: true,
pagingStrategy: PagingStrategies.CURSOR, pagingStrategy: PagingStrategies.CURSOR,
read: { read: {
defaultSort: [{ field: 'id', direction: SortDirection.DESC }], defaultSort: [{ field: 'id', direction: SortDirection.DESC }],

View File

@ -44,7 +44,6 @@ import { ObjectMetadataDTO } from './dtos/object-metadata.dto';
CreateDTOClass: CreateObjectInput, CreateDTOClass: CreateObjectInput,
UpdateDTOClass: UpdateObjectInput, UpdateDTOClass: UpdateObjectInput,
ServiceClass: ObjectMetadataService, ServiceClass: ObjectMetadataService,
enableTotalCount: true,
pagingStrategy: PagingStrategies.CURSOR, pagingStrategy: PagingStrategies.CURSOR,
read: { read: {
defaultSort: [{ field: 'id', direction: SortDirection.DESC }], defaultSort: [{ field: 'id', direction: SortDirection.DESC }],

View File

@ -38,7 +38,6 @@ import { RelationMetadataDTO } from './dtos/relation-metadata.dto';
DTOClass: RelationMetadataDTO, DTOClass: RelationMetadataDTO,
ServiceClass: RelationMetadataService, ServiceClass: RelationMetadataService,
CreateDTOClass: CreateRelationInput, CreateDTOClass: CreateRelationInput,
enableTotalCount: true,
pagingStrategy: PagingStrategies.CURSOR, pagingStrategy: PagingStrategies.CURSOR,
create: { many: { disabled: true } }, create: { many: { disabled: true } },
update: { disabled: true }, update: { disabled: true },