@@ -136,6 +136,7 @@ export class GraphQLSchema {
136136 __validationErrors : ?$ReadOnlyArray < GraphQLError > ;
137137 // Referenced by execute()
138138 __experimentalDeferFragmentSpreads : boolean ;
139+ __experimentalStream : boolean ;
139140
140141 constructor ( config : GraphQLSchemaConfig ) : void {
141142 // If this schema was built from a source known to be valid, then it may be
@@ -165,6 +166,7 @@ export class GraphQLSchema {
165166
166167 this . __experimentalDeferFragmentSpreads =
167168 config . experimentalDeferFragmentSpreads || false ;
169+ this . __experimentalStream = config . experimentalStream || false ;
168170 this . _queryType = config . query ;
169171 this . _mutationType = config . mutation ;
170172 this . _subscriptionType = config . subscription ;
@@ -327,6 +329,18 @@ export type GraphQLSchemaValidationOptions = {|
327329 * Default: false
328330 */
329331 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 ,
330344| } ;
331345
332346export type GraphQLSchemaConfig = { |
0 commit comments