Skip to content

Commit

Permalink
Supports federation 2.3 in the router (#2489)
Browse files Browse the repository at this point in the history
The query planner in Federation 2.3 adds a new concept of "data
rewrites" for fetches in order to support both `@interfaceObject` and to
support the fix for
apollographql/federation#1257.

Those "rewrites" describe simple updates that need to be performed
either on the inputs (the "representations" passed to `_entities`; need
to rewrite the `__typename` when sending queries to an
`@interfaceObject`) or the output of a fetch (needed when a field has
been aliased to permit the subgraph query to be valid, but that field
needs to be "un-aliased" to its original name after the fetch).

This commit implements those rewrites.

Co-authored-by: Geoffroy Couprie <geoffroy@apollographql.com>
  • Loading branch information
pcmanus and Geal authored Jan 31, 2023
1 parent 9ce24f0 commit f255fa3
Show file tree
Hide file tree
Showing 14 changed files with 1,018 additions and 54 deletions.
9 changes: 7 additions & 2 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ By [@USERNAME](https://github.com/USERNAME) in https://github.com/apollographql/

## 🚀 Features

### Update to Federation v2.3.0 ([Issue #2465](https://github.com/apollographql/router/issues/2465))
### Update to Federation v2.3.0 ([Issue #2465](https://github.com/apollographql/router/issues/2465), [Issue #2485](https://github.com/apollographql/router/pull/2485) and [Issue #2489](https://github.com/apollographql/router/pull/2489))

This brings in Federation v2.3.0-beta.3 for testing. This will be updated to a final version before final release.
This brings in Federation v2.3.0-beta.3 for testing and execution support for:
- `@interfaceObject` (added to federation in [federation#2277](https://github.com/apollographql/federation/issues/2277)).
- the bug fix from [federation#2294](https://github.com/apollographql/federation/pull/2294).

This will be updated to a final version before final release.

By [@abernix](https://github.com/abernix) and [@o0Ignition0o](https://github.com/o0Ignition0o) in https://github.com/apollographql/router/pull/2462
By [@pcmanus](https://github.com/pcmanus) in https://github.com/apollographql/router/pull/2485 and https://github.com/apollographql/router/pull/2489

### Always deduplicate variables ([Issue #2387](https://github.com/apollographql/router/issues/2387))

Expand Down
Loading

0 comments on commit f255fa3

Please sign in to comment.