-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify type of argument of
@requiresScope
(#2738)
This modifies the type for the argument of the `@requiresScopes` from `[federation__Scope!]!` to `[[federation__Scope!]!]!` in order to support "OR" semantic within subgraphs. Note that this PR does not bump any spec versions, even if technically `@requiresScopes` has already been part of 2.5.0+ because: - the overarching feature it exists for has not be released yet so the directive is not really effectively usable yet. - bumping the federation spec to 2.6, which this would require if we wanted to bump versions, would be disruption and confusing, so this feel unecessary given the previous.
- Loading branch information
Sylvain Lebresne
authored
Aug 16, 2023
1 parent
c6e0e76
commit 4b9a512
Showing
3 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
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,13 @@ | ||
--- | ||
"@apollo/composition": patch | ||
"@apollo/federation-internals": patch | ||
--- | ||
|
||
Modifies the type for the argument of the `@requiresScopes` from `[federation__Scope!]!` to `[[federation__Scope!]!]!`. | ||
|
||
The `@requiresScopes` directives has been pre-emptively introduced in 2.5.0 to support an upcoming Apollo Router | ||
feature around scoped accesses. The argument for `@requiresScopes` in that upcoming feature is changed to accommodate a | ||
new semantic. Note that this technically a breaking change to the `@requiresScopes` directive definition, but as the | ||
full feature using that directive has been released yet, this directive cannot effectively be used and this should have | ||
no concrete impact. | ||
|
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