File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff line change 11package graphql .normalized .incremental ;
22
3- import graphql .Internal ;
3+ import graphql .ExperimentalApi ;
44import graphql .schema .GraphQLObjectType ;
55
66import javax .annotation .Nullable ;
102102 * and deliver both fields at the same time.
103103 *
104104 */
105- @ Internal
105+ @ ExperimentalApi
106106public class DeferExecution {
107107 private final String label ;
108108 private final Set <GraphQLObjectType > possibleTypes ;
You can’t perform that action at this time.
0 commit comments