github apollographql/federation @apollo/composition@2.7.0

latest releases: @apollo/query-graphs@2.9.0-connectors.7, @apollo/subgraph@2.9.0-connectors.7, @apollo/federation-internals@2.9.0-connectors.7...
5 months ago

Minor Changes

  • Implement progressive @override functionality (#2911)

    The progressive @override feature brings a new argument to the @override directive: label: String. When a label is added to an @override application, the override becomes conditional, depending on parameters provided to the query planner (a set of which labels should be overridden). Note that this feature will be supported in router for enterprise users only.

    Out-of-the-box, the router will support a percentage-based use case for progressive @override. For example:

    type Query {
      hello: String @override(from: "original", label: "percent(5)")
    }

    The above example will override the root hello field from the "original" subgraph 5% of the time.

    More complex use cases will be supported by the router via the use of coprocessors/rhai to resolve arbitrary labels to true/false values (i.e. via a feature flag service).

  • Support @join__directive(graphs, name, args) directives (#2894)

Patch Changes

Don't miss a new federation release

NewReleases is sending notifications on new releases.