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(federation): federation v2.6 support #1928

Merged
merged 2 commits into from
Feb 22, 2024

Conversation

dariuszkuc
Copy link
Collaborator

📝 Description

Adds Federation v2.6 support

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

scalar federation__Policy

@policy directive indicates to composition that the target element is restricted based on authorization policies that are evaluated in a Rhai script or coprocessor. Refer to the Apollo Router article for additional details.

🔗 Related Issues

N/A

Adds Federation v2.6 support

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

scalar federation__Policy
```

`@policy` directive indicates to composition that the target element is restricted based on authorization policies that are evaluated in a Rhai script or coprocessor. Refer to the [Apollo Router article](https://www.apollographql.com/docs/router/configuration/authorization#policy) for additional details.
@dariuszkuc dariuszkuc added type: enhancement New feature or request changes: minor Changes require a minor version module: generator Issue affects the schema generator and federation code labels Feb 17, 2024
@samuelAndalon samuelAndalon merged commit 1172da1 into ExpediaGroup:master Feb 22, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes: minor Changes require a minor version module: generator Issue affects the schema generator and federation code type: enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants