Skip to content

Releases: apollographql/federation

@apollo/subgraph@2.8.0-alpha.1

22 May 22:25
983b2d0
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • Updated dependencies []:
    • @apollo/federation-internals@2.8.0-alpha.1

@apollo/query-planner@2.8.0-alpha.1

22 May 22:25
983b2d0
Compare
Choose a tag to compare
Pre-release

Patch Changes

@apollo/query-graphs@2.8.0-alpha.1

22 May 22:25
983b2d0
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • Fix bug in context-matching logic for interfaces-implementing-interfaces (#3014) (#3015)

    A field is considered to match a context if the field's parent type (in the original query) either has @context on it, or implements/is a member of a type with @context on it. We ended up missing the case where interfaces implement interfaces; this PR introduces a fix.

  • Updated dependencies []:

    • @apollo/federation-internals@2.8.0-alpha.1

@apollo/gateway@2.8.0-alpha.1

22 May 22:25
983b2d0
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • Updated dependencies []:
    • @apollo/composition@2.8.0-alpha.1
    • @apollo/query-planner@2.8.0-alpha.1
    • @apollo/federation-internals@2.8.0-alpha.1

@apollo/federation-internals@2.8.0-alpha.1

22 May 22:25
983b2d0
Compare
Choose a tag to compare
@apollo/federation-internals@2.8.0-alpha.1

@apollo/composition@2.8.0-alpha.1

22 May 22:25
983b2d0
Compare
Choose a tag to compare
Pre-release

Patch Changes

@apollo/subgraph@2.8.0-alpha.0

17 May 00:35
2c37ad4
Compare
Choose a tag to compare
Pre-release

Patch Changes

@apollo/query-planner@2.8.0-alpha.0

17 May 00:35
2c37ad4
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • Implement new directives to allow getting and setting context. This allows resolvers to reference and access data referenced by entities that exist in the GraphPath that was used to access the field. The following example demonstrates the ability to access the prop field within the Child resolver. (#2988)

    type Query {
      p: Parent!
    }
    type Parent @key(fields: "id") @context(name: "context") {
      id: ID!
      child: Child!
      prop: String!
    }
    type Child @key(fields: "id") {
      id: ID!
      b: String!
      field(a: String @fromContext(field: "$context { prop }")): Int!
    }

Patch Changes

@apollo/query-graphs@2.8.0-alpha.0

17 May 00:35
2c37ad4
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • Implement new directives to allow getting and setting context. This allows resolvers to reference and access data referenced by entities that exist in the GraphPath that was used to access the field. The following example demonstrates the ability to access the prop field within the Child resolver. (#2988)

    type Query {
      p: Parent!
    }
    type Parent @key(fields: "id") @context(name: "context") {
      id: ID!
      child: Child!
      prop: String!
    }
    type Child @key(fields: "id") {
      id: ID!
      b: String!
      field(a: String @fromContext(field: "$context { prop }")): Int!
    }

Patch Changes

@apollo/gateway@2.8.0-alpha.0

17 May 00:35
2c37ad4
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • Implement new directives to allow getting and setting context. This allows resolvers to reference and access data referenced by entities that exist in the GraphPath that was used to access the field. The following example demonstrates the ability to access the prop field within the Child resolver. (#2988)

    type Query {
      p: Parent!
    }
    type Parent @key(fields: "id") @context(name: "context") {
      id: ID!
      child: Child!
      prop: String!
    }
    type Child @key(fields: "id") {
      id: ID!
      b: String!
      field(a: String @fromContext(field: "$context { prop }")): Int!
    }

Patch Changes