Skip to content

Commit 6111fbb

Browse files
authored
feat: Add ungrouped flag to GraphQL API (#7746)
1 parent 6241e5e commit 6111fbb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/cubejs-api-gateway/src/graphql.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,11 +503,12 @@ export function makeSchema(metaConfig: any): GraphQLSchema {
503503
offset: intArg(),
504504
timezone: stringArg(),
505505
renewQuery: booleanArg(),
506+
ungrouped: booleanArg(),
506507
orderBy: arg({
507508
type: 'RootOrderByInput'
508509
}),
509510
},
510-
resolve: async (_, { where, limit, offset, timezone, orderBy, renewQuery }, { req, apiGateway }, infos) => {
511+
resolve: async (_, { where, limit, offset, timezone, orderBy, renewQuery, ungrouped }, { req, apiGateway }, infos) => {
511512
const measures: string[] = [];
512513
const dimensions: string[] = [];
513514
const timeDimensions: any[] = [];
@@ -604,6 +605,7 @@ export function makeSchema(metaConfig: any): GraphQLSchema {
604605
...(timezone && { timezone }),
605606
...(filters.length && { filters }),
606607
...(renewQuery && { renewQuery }),
608+
...(ungrouped && { ungrouped }),
607609
};
608610

609611
const results = await new Promise<any>((resolve, reject) => {

0 commit comments

Comments
 (0)