Skip to content

@apollo/query-planner@2.7.5

Compare
Choose a tag to compare
@github-actions github-actions released this 02 May 21:06
· 27 commits to main since this release
938439b

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