Skip to content

Commit 55a0d60

Browse files
committed
update cacheMod in graphql
1 parent 5fb73da commit 55a0d60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ function parseDates(result: any) {
363363
}
364364

365365
export function getJsonQuery(metaConfig: any, args: Record<string, any>, infos: GraphQLResolveInfo) {
366-
const { where, limit, offset, timezone, orderBy, renewQuery, ungrouped, cache } = args;
366+
const { where, limit, offset, timezone, orderBy, renewQuery, ungrouped, cacheMode } = args;
367367

368368
const measures: string[] = [];
369369
const dimensions: string[] = [];
@@ -461,7 +461,7 @@ export function getJsonQuery(metaConfig: any, args: Record<string, any>, infos:
461461
...(timezone && { timezone }),
462462
...(filters.length && { filters }),
463463
...(renewQuery && { renewQuery }),
464-
...(cache && { cache }),
464+
...(cacheMode && { cacheMode }),
465465
...(ungrouped && { ungrouped }),
466466
};
467467
}
@@ -640,7 +640,7 @@ export function makeSchema(metaConfig: any): GraphQLSchema {
640640
offset: intArg(),
641641
timezone: stringArg(),
642642
renewQuery: booleanArg(),
643-
cache: stringArg(),
643+
cacheMode: stringArg(),
644644
ungrouped: booleanArg(),
645645
orderBy: arg({
646646
type: 'RootOrderByInput'

0 commit comments

Comments
 (0)