Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for fed v2.6 and v2.7 #377

Merged
merged 5 commits into from
Feb 5, 2024
Merged

feat: add support for fed v2.6 and v2.7 #377

merged 5 commits into from
Feb 5, 2024

Conversation

dariuszkuc
Copy link
Member

  • federation v2.6 - new @policy directive, see docs for details
directive @policy(policies: [[federation__Policy!]!]!) on
  | FIELD_DEFINITION
  | OBJECT
  | INTERFACE
  | SCALAR
  | ENUM

scalar Policy
  • federation v2.7 - update to @override definition (new label argument), see docs for details
directive @override(from: String!, label: String) on FIELD_DEFINITION

@dariuszkuc dariuszkuc added the change: minor New functionality added in backwards compatible manner label Feb 5, 2024
Copy link

github-actions bot commented Feb 5, 2024

Apollo Federation Subgraph Compatibility Results

Federation 1 SupportFederation 2 Support
_service🟢
@key (single)🟢
@key (multi)🟢
@key (composite)🟢
repeatable @key🟢
@requires🟢
@provides🟢
federated tracing🟢
@link🟢
@shareable🟢
@tag🟢
@override🟢
@inaccessible🟢
@composeDirective🟢
@interfaceObject🟢

Learn more:

@dariuszkuc dariuszkuc merged commit 2d87c78 into main Feb 5, 2024
4 checks passed
@dariuszkuc dariuszkuc deleted the fed27 branch February 5, 2024 23:08
dariuszkuc added a commit that referenced this pull request Oct 10, 2024
* federation v2.6 - new `@policy` directive, see
[docs](https://www.apollographql.com/docs/federation/federated-types/federated-directives#policy)
for details

```graphql
directive @Policy(policies: [[federation__Policy!]!]!) on
  | FIELD_DEFINITION
  | OBJECT
  | INTERFACE
  | SCALAR
  | ENUM

scalar Policy
```

* federation v2.7 - update to `@override` definition (new `label`
argument), see
[docs](https://www.apollographql.com/docs/federation/federated-types/federated-directives#progressive-override)
for details

```graphql
directive @OverRide(from: String!, label: String) on FIELD_DEFINITION
```

---------

Co-authored-by: Trevor Scheer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change: minor New functionality added in backwards compatible manner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants