Skip to content

Commit 0f365b5

Browse files
committed
GQLGW-5297-add-unusual-config
1 parent 50169f0 commit 0f365b5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎src/main/java/graphql/GraphQLUnusualConfiguration.java‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package graphql;
22

33
import graphql.execution.ResponseMapFactory;
4+
import graphql.execution.incremental.IncrementalExecutionContextKeys;
45
import graphql.introspection.GoodFaithIntrospection;
56
import graphql.parser.ParserOptions;
67
import graphql.schema.PropertyDataFetcherHelper;
@@ -337,6 +338,15 @@ public IncrementalSupportConfig enableIncrementalSupport(boolean enable) {
337338
contextConfig.put(ExperimentalApi.ENABLE_INCREMENTAL_SUPPORT, enable);
338339
return this;
339340
}
341+
342+
/**
343+
* This controls whether @defer field execution starts as early as possible.
344+
*/
345+
@ExperimentalApi
346+
public IncrementalSupportConfig enableEarlyIncrementalFieldExecution(boolean enable) {
347+
contextConfig.put(IncrementalExecutionContextKeys.ENABLE_EAGER_DEFER_START, enable);
348+
return this;
349+
}
340350
}
341351

342352
public static class DataloaderConfig extends BaseContextConfig {

0 commit comments

Comments
 (0)