@@ -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 : $ReadOnly < 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 ;
@@ -320,6 +322,18 @@ export type GraphQLSchemaValidationOptions = {|
320322 * Default: false
321323 */
322324 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 ,
323337| } ;
324338
325339export type GraphQLSchemaConfig = { |
0 commit comments