@graphql-tools/delegate
12.3.4 · 12 Nov 2026MIT15.8M / weekRepositorynpmAtom feed
Your version
12.3.4 is the newest release of 12.x.
In short
1 fixed
Release note
The section about @graphql-tools/delegate of a note shared by several packages.
@graphql-tools/delegate@12.0.5
Patch Changes
Do not add required fields if they are already present in the original selection set.
For example in Federation;
If you have a subgraph schema like below;
type Book @key(fields: "upc otherUpc shop { id }") { upc: ID! otherUpc: ID! shop: Shop! } type Shop @key(fields: "id") { id: ID! name: String! location: Location! }And when you send a mutation like below;
mutation { buyBook(input: { bookUpc: "test" }) { book { upc otherUpc shop { id name location { address1 city state } } } } }Previously, the gateway would add the required key fields again to the selection set when resolving the type like below;
mutation { buyBook(input: { bookUpc: "test" }) { book { upc otherUpc - upc - otherUpc - shop { id } # from the key fields shop { id name location { address1 city state } } } } }
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.