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[ApolloFederation]: add support for federation v2.6 and v2.7 #6864

Merged
merged 3 commits into from
Feb 5, 2024

Conversation

dariuszkuc
Copy link
Contributor

Adds support for Apollo Federation v2.6/v2.7 and provides small fixes to existing definitions.

  • fed v2.6
directive @policy(policies: [[federation__Policy!]!]!) on
  | FIELD_DEFINITION
  | OBJECT
  | INTERFACE
  | SCALAR
  | ENUM

scalar Policy
  • fed v2.7
directive @override(from: String!, label: String) on FIELD_DEFINITION
  • fixes
    • @authenticated is available since v2.5
    • @composeDirective is available since v2.1
    • @external is applicable on fields and objects in v2
    • @interfaceObject is available since v2.3

Adds support for Apollo Federation v2.6/v2.7 and provides small fixes to existing definitions.

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

scalar Policy
```
* fed v2.7
```graphql
directive @OverRide(from: String!, label: String) on FIELD_DEFINITION
```
* fixes
  * `@authenticated` is available since v2.5
  * `@composeDirective` is available since v2.1
  * `@external` is applicable on fields and objects in v2
  * `@interfaceObject` is available since v2.3
Copy link

codecov bot commented Feb 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2013cb6) 69.61% compared to head (a0261ea) 69.56%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6864      +/-   ##
==========================================
- Coverage   69.61%   69.56%   -0.06%     
==========================================
  Files        2499     2485      -14     
  Lines      126170   125534     -636     
==========================================
- Hits        87832    87324     -508     
+ Misses      38338    38210     -128     
Flag Coverage Δ
unittests 69.56% <ø> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@michaelstaib michaelstaib merged commit e2308ce into ChilliCream:main Feb 5, 2024
87 of 97 checks passed
@dariuszkuc dariuszkuc deleted the fed27 branch February 8, 2024 21:17
@PascalSenn PascalSenn mentioned this pull request Feb 19, 2024
@PascalSenn PascalSenn mentioned this pull request May 22, 2024
@PascalSenn PascalSenn mentioned this pull request Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants