Skip to content

Releases: apollographql/federation

@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

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

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

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!
    }

@apollo/composition@2.8.0-alpha.0

17 May 00:34
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/subgraph@2.7.8

16 May 21:10
60f8d22
Compare
Choose a tag to compare

Patch Changes

@apollo/query-planner@2.7.8

16 May 21:10
60f8d22
Compare
Choose a tag to compare

Patch Changes

@apollo/query-graphs@2.7.8

16 May 21:10
60f8d22
Compare
Choose a tag to compare

Patch Changes

@apollo/gateway@2.7.8

16 May 21:10
60f8d22
Compare
Choose a tag to compare

Patch Changes

  • Triggering a clean 2.7.8 release now that harmonizer build has been fixed. (#3010)

  • Updated dependencies [2ad72802044310a528e8944f4538efe519424504]:

    • @apollo/composition@2.7.8
    • @apollo/federation-internals@2.7.8
    • @apollo/query-planner@2.7.8

@apollo/federation-internals@2.7.8

16 May 21:10
60f8d22
Compare
Choose a tag to compare

Patch Changes

  • Triggering a clean 2.7.8 release now that harmonizer build has been fixed. (#3010)

@apollo/composition@2.7.8

16 May 21:10
60f8d22
Compare
Choose a tag to compare

Patch Changes