Add missing arguments in aggregated resolver (#8729)

This commit is contained in:
Rijk van Zanten
2021-10-12 11:44:00 -04:00
committed by GitHub
parent b2ec182493
commit e2191c14b7

View File

@@ -879,6 +879,13 @@ export class GraphQLService {
type: [AggregatedFunctions[collection.collection]],
args: {
groupBy: new GraphQLList(GraphQLString),
filter: ReadableCollectionFilterTypes[collection.collection],
search: {
type: GraphQLString,
},
sort: {
type: new GraphQLList(GraphQLString),
},
},
resolve: async ({ info, context }: { info: GraphQLResolveInfo; context: Record<string, any> }) => {
const result = await self.resolveQuery(info);