File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ export class GraphQLSchema {
139
139
140
140
// Used as a cache for validateSchema().
141
141
__validationErrors : ?$ReadOnlyArray < GraphQLError > ;
142
+ // Referenced by execute()
143
+ __experimentalDeferFragmentSpreads : boolean ;
142
144
143
145
constructor ( config : $ReadOnly < GraphQLSchemaConfig > ) : void {
144
146
// If this schema was built from a source known to be valid, then it may be
@@ -161,6 +163,8 @@ export class GraphQLSchema {
161
163
this . astNode = config . astNode ;
162
164
this . extensionASTNodes = config . extensionASTNodes ;
163
165
166
+ this . __experimentalDeferFragmentSpreads =
167
+ config . experimentalDeferFragmentSpreads || false ;
164
168
this . _queryType = config . query ;
165
169
this . _mutationType = config . mutation ;
166
170
this . _subscriptionType = config . subscription ;
@@ -364,6 +368,18 @@ export type GraphQLSchemaValidationOptions = {|
364
368
* Default: false
365
369
*/
366
370
assumeValid ? : boolean ,
371
+
372
+ /**
373
+ *
374
+ * EXPERIMENTAL:
375
+ *
376
+ * If enabled, processed fields from fragment spreads with @defer directive
377
+ * are not returned from the iniital query and the respective data is returned
378
+ * in patches after the initial result from the synchronous query.
379
+ *
380
+ * Default: false
381
+ */
382
+ experimentalDeferFragmentSpreads ? : boolean ,
367
383
| } ;
368
384
369
385
export type GraphQLSchemaConfig = { |
You can’t perform that action at this time.
0 commit comments