github apollographql/federation @apollo/federation-internals@2.5.2

Patch Changes

  • Fix over-eager merging of fields with different directive applications (#2713)

    Previously, the following query would incorrectly combine the selection set of hello, with both fields ending up under the @skip condition:

    query Test($skipField: Boolean!) {
      hello @skip(if: $skipField) {
        world
      }
      hello {
        goodbye
      }
    }

    This change identifies those two selections on hello as unique while constructing our operation representation so they aren't merged at all, leaving it to the subgraph to handle the operation as-is.

Don't miss a new federation release

NewReleases is sending notifications on new releases.