Skip to content

Commit 05754da

Browse files
authored
[docs] Update @fromcontext directive to use federation type (#3313)
Fix the reference Federation spec in docs. This SDL is not valid. The `federation__` prefix may be removed in libraries using `@link`, however we define the scalar above with the prefix
1 parent a96a04d commit 05754da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/source/schema-design/federated-schemas/reference/subgraph-spec.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ directive @authenticated on FIELD_DEFINITION | OBJECT | INTERFACE | SCALAR | ENU
7878
directive @requiresScopes(scopes: [[federation__Scope!]!]!) on FIELD_DEFINITION | OBJECT | INTERFACE | SCALAR | ENUM
7979
directive @policy(policies: [[federation__Policy!]!]!) on FIELD_DEFINITION | OBJECT | INTERFACE | SCALAR | ENUM
8080
directive @context(name: String!) repeatable on INTERFACE | OBJECT | UNION
81-
directive @fromContext(field: ContextFieldValue) on ARGUMENT_DEFINITION
81+
directive @fromContext(field: federation__ContextFieldValue) on ARGUMENT_DEFINITION
8282

8383
# This definition is required only for libraries that don't support
8484
# GraphQL's built-in `extend` keyword

0 commit comments

Comments
 (0)