Skip to content

Commit b22fe7a

Browse files
committed
minor changes
1 parent a91fa64 commit b22fe7a

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎src/main/java/graphql/Directives.java‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,16 @@ public class Directives {
8181
/**
8282
* The @defer directive can be used to defer sending data for a fragment until later in the query.
8383
* This is an opt-in directive that is not available unless it is explicitly put into the schema.
84+
* <p>
85+
* This implementation is based on the state of <a href="https://github.com/graphql/graphql-spec/pull/742">Defer/Stream PR</a>
86+
* More specifically at the state of this
87+
* <a href="https://github.com/graphql/graphql-spec/commit/c630301560d9819d33255d3ba00f548e8abbcdc6">commit</a>
88+
* <p>
89+
* The execution behaviour should match what we get from running Apollo Server 4.9.5 with graphql-js v17.0.0-alpha.2
8490
*/
8591
@ExperimentalApi
8692
public static final GraphQLDirective DeferDirective = GraphQLDirective.newDirective()
87-
.name("defer")
93+
.name(DEFER)
8894
.description("This directive allows results to be deferred during execution")
8995
.validLocations(FRAGMENT_SPREAD, INLINE_FRAGMENT)
9096
.argument(newArgument()

‎src/main/java/graphql/normalized/incremental/DeferExecution.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package graphql.normalized.incremental;
22

3-
import graphql.Internal;
3+
import graphql.ExperimentalApi;
44
import graphql.schema.GraphQLObjectType;
55

66
import javax.annotation.Nullable;
@@ -102,7 +102,7 @@
102102
* and deliver both fields at the same time.
103103
*
104104
*/
105-
@Internal
105+
@ExperimentalApi
106106
public class DeferExecution {
107107
private final String label;
108108
private final Set<GraphQLObjectType> possibleTypes;

0 commit comments

Comments
 (0)