File tree 3 files changed +6
-7
lines changed 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -309,6 +309,6 @@ export const StarWarsSchema = new GraphQLSchema({
309
309
export const StarWarsSchemaDeferStreamEnabled = new GraphQLSchema ( {
310
310
query : queryType ,
311
311
types : [ humanType , droidType ] ,
312
- experimentalDeferFragmentSpreads : true ,
312
+ experimentalDefer : true ,
313
313
experimentalStream : true ,
314
314
} ) ;
Original file line number Diff line number Diff line change @@ -546,7 +546,7 @@ export function collectFields(
546
546
continue ;
547
547
}
548
548
549
- const patchLabel = exeContext . schema . __experimentalDeferFragmentSpreads
549
+ const patchLabel = exeContext . schema . __experimentalDefer
550
550
? getDeferredNodeLabel ( exeContext , selection )
551
551
: '' ;
552
552
@@ -582,7 +582,7 @@ export function collectFields(
582
582
continue ;
583
583
}
584
584
585
- const patchLabel = exeContext . schema . __experimentalDeferFragmentSpreads
585
+ const patchLabel = exeContext . schema . __experimentalDefer
586
586
? getDeferredNodeLabel ( exeContext , selection )
587
587
: '' ;
588
588
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ export class GraphQLSchema {
135
135
// Used as a cache for validateSchema().
136
136
__validationErrors : ?$ReadOnlyArray < GraphQLError > ;
137
137
// Referenced by execute()
138
- __experimentalDeferFragmentSpreads : boolean ;
138
+ __experimentalDefer : boolean ;
139
139
__experimentalStream : boolean ;
140
140
141
141
constructor ( config : $ReadOnly < GraphQLSchemaConfig > ) : void {
@@ -164,8 +164,7 @@ export class GraphQLSchema {
164
164
this . astNode = config . astNode ;
165
165
this . extensionASTNodes = config . extensionASTNodes ;
166
166
167
- this . __experimentalDeferFragmentSpreads =
168
- config . experimentalDeferFragmentSpreads || false ;
167
+ this . __experimentalDefer = config . experimentalDefer || false ;
169
168
this . __experimentalStream = config . experimentalStream || false ;
170
169
this . _queryType = config . query ;
171
170
this . _mutationType = config . mutation ;
@@ -321,7 +320,7 @@ export type GraphQLSchemaValidationOptions = {|
321
320
*
322
321
* Default: false
323
322
*/
324
- experimentalDeferFragmentSpreads ?: boolean ,
323
+ experimentalDefer ?: boolean ,
325
324
326
325
/**
327
326
*
You can’t perform that action at this time.
0 commit comments