Skip to content

Commit

Permalink
Update deferStreamSupport to incrementalDelivery
Browse files Browse the repository at this point in the history
  • Loading branch information
abernix committed Aug 30, 2022
1 parent c69ea29 commit 330cb2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions federation-2/router-bridge/js-src/introspection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function batchIntrospect(
let composedSchema = buildSchema(sdl);
let apiSchema = composedSchema.toAPISchema();
schema = apiSchema.toGraphQLJSSchema({
includeDefer: options.deferStreamSupport?.enableDefer,
includeDefer: options.incrementalDelivery?.enableDefer,
});
} catch (e) {
return Array(queries.length).fill({
Expand Down Expand Up @@ -52,7 +52,7 @@ export function introspect(
let composedSchema = buildSchema(sdl);
let apiSchema = composedSchema.toAPISchema();
schema = apiSchema.toGraphQLJSSchema({
includeDefer: options.deferStreamSupport?.enableDefer,
includeDefer: options.incrementalDelivery?.enableDefer,
});
} catch (e) {
return {
Expand Down
2 changes: 1 addition & 1 deletion federation-2/router-bridge/js-src/plan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class BridgeQueryPlanner {
this.composedSchema = schema;
const apiSchema = this.composedSchema.toAPISchema();
this.apiSchema = apiSchema.toGraphQLJSSchema({
includeDefer: options.deferStreamSupport?.enableDefer,
includeDefer: options.incrementalDelivery?.enableDefer,
});
this.planner = new QueryPlanner(this.composedSchema, options);
}
Expand Down

0 comments on commit 330cb2c

Please sign in to comment.