Skip to content

@apollo/query-planner@2.5.4

Compare
Choose a tag to compare
@github-actions github-actions released this 31 Aug 17:58
· 242 commits to main since this release
d8930ec

Patch Changes

  • Fix some potentially incorrect query plans with @requires when some dependencies are involved. (#2726)

    In some rare case of @requires, an over-eager optimisation was incorrectly considering that
    a dependency between 2 subgraph fetches was unnecessary, leading to doing 2 subgraphs queries
    in parallel when those should be done sequentially (because the 2nd query rely on results
    from the 1st one). This effectively resulted in the required fields not being provided (the
    consequence of which depends a bit on the resolver detail, but if the resolver expected
    the required fields to be populated (as they should), then this could typically result
    in a message of the form GraphQLError: Cannot read properties of null).

  • Updated dependencies []:

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