Improve performances of metadata endpoint (#4347)
This commit is contained in:
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@ -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 }],
|
||||||
|
|||||||
@ -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 }],
|
||||||
|
|||||||
@ -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 },
|
||||||
|
|||||||
Reference in New Issue
Block a user