@@ -136,6 +136,7 @@ export class GraphQLSchema {
136
136
__validationErrors : ?$ReadOnlyArray < GraphQLError > ;
137
137
// Referenced by execute()
138
138
__experimentalDeferFragmentSpreads : boolean ;
139
+ __experimentalStream : boolean ;
139
140
140
141
constructor ( config : GraphQLSchemaConfig ) : void {
141
142
// If this schema was built from a source known to be valid, then it may be
@@ -165,6 +166,7 @@ export class GraphQLSchema {
165
166
166
167
this . __experimentalDeferFragmentSpreads =
167
168
config . experimentalDeferFragmentSpreads || false ;
169
+ this . __experimentalStream = config . experimentalStream || false ;
168
170
this . _queryType = config . query ;
169
171
this . _mutationType = config . mutation ;
170
172
this . _subscriptionType = config . subscription ;
@@ -327,6 +329,18 @@ export type GraphQLSchemaValidationOptions = {|
327
329
* Default: false
328
330
*/
329
331
experimentalDeferFragmentSpreads ?: boolean ,
332
+
333
+ /**
334
+ *
335
+ * EXPERIMENTAL:
336
+ *
337
+ * If enabled, items from a plural fields with @stream directive
338
+ * are not returned from the iniital query and each item is returned
339
+ * in a patch after the initial result from the synchronous query.
340
+ *
341
+ * Default: false
342
+ */
343
+ experimentalStream ?: boolean ,
330
344
| } ;
331
345
332
346
export type GraphQLSchemaConfig = { |
0 commit comments