Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
GQLGW-5297-add-unusual-config
  • Loading branch information
llin2 committed Nov 19, 2025
commit 0f365b57e768a4ec8c6ed8d1116dba42db29292f
10 changes: 10 additions & 0 deletions src/main/java/graphql/GraphQLUnusualConfiguration.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package graphql;

import graphql.execution.ResponseMapFactory;
import graphql.execution.incremental.IncrementalExecutionContextKeys;
import graphql.introspection.GoodFaithIntrospection;
import graphql.parser.ParserOptions;
import graphql.schema.PropertyDataFetcherHelper;
Expand Down Expand Up @@ -337,6 +338,15 @@ public IncrementalSupportConfig enableIncrementalSupport(boolean enable) {
contextConfig.put(ExperimentalApi.ENABLE_INCREMENTAL_SUPPORT, enable);
return this;
}

/**
* This controls whether @defer field execution starts as early as possible.
*/
@ExperimentalApi
public IncrementalSupportConfig enableEarlyIncrementalFieldExecution(boolean enable) {
contextConfig.put(IncrementalExecutionContextKeys.ENABLE_EAGER_DEFER_START, enable);
return this;
}
}

public static class DataloaderConfig extends BaseContextConfig {
Expand Down