-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for federation versions up to 2.6 (#1158)
- Loading branch information
Showing
11 changed files
with
580 additions
and
16 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# | ||
# https://specs.apollo.dev/federation/v2.0/federation-v2.0.graphql | ||
# | ||
|
||
directive @key(fields: FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE | ||
directive @requires(fields: FieldSet!) on FIELD_DEFINITION | ||
directive @provides(fields: FieldSet!) on FIELD_DEFINITION | ||
directive @external on OBJECT | FIELD_DEFINITION | ||
directive @extends on OBJECT | INTERFACE | ||
directive @override(from: String!) on FIELD_DEFINITION | ||
directive @inaccessible on | ||
| FIELD_DEFINITION | ||
| OBJECT | ||
| INTERFACE | ||
| UNION | ||
| ENUM | ||
| ENUM_VALUE | ||
| SCALAR | ||
| INPUT_OBJECT | ||
| INPUT_FIELD_DEFINITION | ||
| ARGUMENT_DEFINITION | ||
directive @tag(name: String!) repeatable on | ||
| FIELD_DEFINITION | ||
| INTERFACE | ||
| OBJECT | ||
| UNION | ||
| ARGUMENT_DEFINITION | ||
| SCALAR | ||
| ENUM | ||
| ENUM_VALUE | ||
| INPUT_OBJECT | ||
| INPUT_FIELD_DEFINITION | ||
scalar FieldSet | ||
|
||
# | ||
# federation-v2.1 | ||
# | ||
|
||
directive @composeDirective(name: String!) repeatable on SCHEMA | ||
|
||
# | ||
# https://specs.apollo.dev/link/v1.0/link-v1.0.graphql | ||
# | ||
|
||
directive @link( | ||
url: String!, | ||
as: String, | ||
import: [Import]) | ||
repeatable on SCHEMA | ||
|
||
scalar Import | ||
|
||
# | ||
# federation-v2.2 | ||
# | ||
|
||
directive @shareable repeatable on FIELD_DEFINITION | OBJECT | ||
|
||
# | ||
# federation-v2.3 | ||
# | ||
|
||
directive @interfaceObject on OBJECT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# | ||
# https://specs.apollo.dev/federation/v2.0/federation-v2.0.graphql | ||
# | ||
|
||
directive @key(fields: FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE | ||
directive @requires(fields: FieldSet!) on FIELD_DEFINITION | ||
directive @provides(fields: FieldSet!) on FIELD_DEFINITION | ||
directive @external on OBJECT | FIELD_DEFINITION | ||
directive @extends on OBJECT | INTERFACE | ||
directive @override(from: String!) on FIELD_DEFINITION | ||
directive @inaccessible on | ||
| FIELD_DEFINITION | ||
| OBJECT | ||
| INTERFACE | ||
| UNION | ||
| ENUM | ||
| ENUM_VALUE | ||
| SCALAR | ||
| INPUT_OBJECT | ||
| INPUT_FIELD_DEFINITION | ||
| ARGUMENT_DEFINITION | ||
directive @tag(name: String!) repeatable on | ||
| FIELD_DEFINITION | ||
| INTERFACE | ||
| OBJECT | ||
| UNION | ||
| ARGUMENT_DEFINITION | ||
| SCALAR | ||
| ENUM | ||
| ENUM_VALUE | ||
| INPUT_OBJECT | ||
| INPUT_FIELD_DEFINITION | ||
scalar FieldSet | ||
|
||
# | ||
# federation-v2.1 | ||
# | ||
|
||
directive @composeDirective(name: String!) repeatable on SCHEMA | ||
|
||
# | ||
# https://specs.apollo.dev/link/v1.0/link-v1.0.graphql | ||
# | ||
|
||
directive @link( | ||
url: String!, | ||
as: String, | ||
import: [Import]) | ||
repeatable on SCHEMA | ||
|
||
scalar Import | ||
|
||
# | ||
# federation-v2.2 | ||
# | ||
|
||
directive @shareable repeatable on FIELD_DEFINITION | OBJECT | ||
|
||
# | ||
# federation-v2.3 | ||
# | ||
|
||
directive @interfaceObject on OBJECT | ||
|
||
# | ||
# federation-v2.5 | ||
# | ||
|
||
directive @authenticated on | ||
FIELD_DEFINITION | ||
| OBJECT | ||
| INTERFACE | ||
| SCALAR | ||
| ENUM | ||
|
||
scalar federation__Scope | ||
|
||
directive @requiresScopes(scopes: [[federation__Scope!]!]!) on | ||
FIELD_DEFINITION | ||
| OBJECT | ||
| INTERFACE | ||
| SCALAR | ||
| ENUM | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
# | ||
# https://specs.apollo.dev/federation/v2.0/federation-v2.0.graphql | ||
# | ||
|
||
directive @key(fields: FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE | ||
directive @requires(fields: FieldSet!) on FIELD_DEFINITION | ||
directive @provides(fields: FieldSet!) on FIELD_DEFINITION | ||
directive @external on OBJECT | FIELD_DEFINITION | ||
directive @extends on OBJECT | INTERFACE | ||
directive @override(from: String!) on FIELD_DEFINITION | ||
directive @inaccessible on | ||
| FIELD_DEFINITION | ||
| OBJECT | ||
| INTERFACE | ||
| UNION | ||
| ENUM | ||
| ENUM_VALUE | ||
| SCALAR | ||
| INPUT_OBJECT | ||
| INPUT_FIELD_DEFINITION | ||
| ARGUMENT_DEFINITION | ||
directive @tag(name: String!) repeatable on | ||
| FIELD_DEFINITION | ||
| INTERFACE | ||
| OBJECT | ||
| UNION | ||
| ARGUMENT_DEFINITION | ||
| SCALAR | ||
| ENUM | ||
| ENUM_VALUE | ||
| INPUT_OBJECT | ||
| INPUT_FIELD_DEFINITION | ||
scalar FieldSet | ||
|
||
# | ||
# federation-v2.1 | ||
# | ||
|
||
directive @composeDirective(name: String!) repeatable on SCHEMA | ||
|
||
# | ||
# https://specs.apollo.dev/link/v1.0/link-v1.0.graphql | ||
# | ||
|
||
directive @link( | ||
url: String!, | ||
as: String, | ||
import: [Import]) | ||
repeatable on SCHEMA | ||
|
||
scalar Import | ||
|
||
# | ||
# federation-v2.2 | ||
# | ||
|
||
directive @shareable repeatable on FIELD_DEFINITION | OBJECT | ||
|
||
# | ||
# federation-v2.3 | ||
# | ||
|
||
directive @interfaceObject on OBJECT | ||
|
||
# | ||
# federation-v2.5 | ||
# | ||
|
||
directive @authenticated on | ||
FIELD_DEFINITION | ||
| OBJECT | ||
| INTERFACE | ||
| SCALAR | ||
| ENUM | ||
|
||
scalar federation__Scope | ||
|
||
directive @requiresScopes(scopes: [[federation__Scope!]!]!) on | ||
FIELD_DEFINITION | ||
| OBJECT | ||
| INTERFACE | ||
| SCALAR | ||
| ENUM | ||
|
||
# | ||
# federation-v2.5 | ||
# | ||
|
||
scalar federation__Policy | ||
directive @policy(policies: [[federation__Policy!]!]!) on | ||
| FIELD_DEFINITION | ||
| OBJECT | ||
| INTERFACE | ||
| SCALAR | ||
| ENUM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.