github apollographql/federation @apollo/query-planner@2.7.5

latest releases: @apollo/subgraph@2.8.0-alpha.0, @apollo/query-planner@2.8.0-alpha.0, @apollo/query-graphs@2.8.0-alpha.0...
15 days ago

Patch Changes

  • Fix issue with missing fragment definitions due to generateQueryFragments. (#2993)

    An incorrect implementation detail in generateQueryFragments caused certain queries to be missing fragment definitions. Specifically, subsequent fragment "candidates" with the same type condition and the same length of selections as a previous fragment weren't correctly added to the list of fragments. An example of an affected query is:

    query {
      t {
        ... on A {
          x
          y
        }
      }
      t2 {
        ... on A {
          y
          z
        }
      }
    }

    In this case, the second selection set would be converted to an inline fragment spread to subgraph fetches, but the fragment definition would be missing.

  • Updated dependencies []:

    • @apollo/federation-internals@2.7.5
    • @apollo/query-graphs@2.7.5

Don't miss a new federation release

NewReleases is sending notifications on new releases.