Commit 4f3c3b9
Introduce
With this change, users can now compose `@requiresScopes`
applications from their subgraphs into a supergraph. This addition
will support a future version of Apollo Router that enables
authenticated access to specific types and fields via directive
applications.
Since the implementation of `@requiresScopes` is strictly a
composition and execution concern, there's no change to the
query planner with this work. The execution work is well under way
in Apollo Router (and won't be built at all for Gateway). So as far as
this repo is concerned, only composition is concerned with
`@requiresScopes`.
Co-authored-by: Sylvain Lebresne <lebresne@gmail.com>@requiresScopes directive in composition (#2649)1 parent fe1e3d7 commit 4f3c3b9
18 files changed
Lines changed: 692 additions & 119 deletions
File tree
- .changeset
- .cspell
- composition-js/src
- __tests__
- merging
- gateway-js/src/__tests__/gateway
- internals-js/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| |||
0 commit comments