@@ -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 : $ReadOnly < 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 ;
@@ -320,6 +322,18 @@ export type GraphQLSchemaValidationOptions = {|
320
322
* Default: false
321
323
*/
322
324
experimentalDeferFragmentSpreads ?: boolean ,
325
+
326
+ /**
327
+ *
328
+ * EXPERIMENTAL:
329
+ *
330
+ * If enabled, items from a plural fields with @stream directive
331
+ * are not returned from the iniital query and each item is returned
332
+ * in a patch after the initial result from the synchronous query.
333
+ *
334
+ * Default: false
335
+ */
336
+ experimentalStream ?: boolean ,
323
337
| } ;
324
338
325
339
export type GraphQLSchemaConfig = { |
0 commit comments