release-1714661175255
版本发布时间: 2024-05-02 22:46:15
ardatan/graphql-tools最新发布版本:release-1727374913368(2024-09-27 02:21:53)
@graphql-tools/delegate@10.0.9
Patch Changes
-
#6126
680351e
Thanks @ardatan! - When there is a Node subschema, and others to resolve the rest of the entities by using a union resolver as in Federation like below, it was failing. This version fixes that issue.query { node(id: "1") { id # Fetches from Node ... on User { name # Fetches from User } } }
type Query { node(id: ID!): Node } interface Node { id: ID! } type User implements Node { id: ID! } type Post implements Node { id: ID! }
# User subschema scalar _Any type Query { _entities(representations: [_Any!]!): [_Entity]! } union _Entity = User interface Node { id: ID! } type User implements Node { id: ID! name: String! }
# Post subschema scalar _Any union _Entity = Post type Query { _entities(representations: [_Any!]!): [_Entity]! } interface Node { id: ID! } type Post implements Node { id: ID! title: String! }
@graphql-tools/federation@1.1.32
Patch Changes
-
#6126
680351e
Thanks @ardatan! - When there is a Node subschema, and others to resolve the rest of the entities by using a union resolver as in Federation like below, it was failing. This version fixes that issue.query { node(id: "1") { id # Fetches from Node ... on User { name # Fetches from User } } }
type Query { node(id: ID!): Node } interface Node { id: ID! } type User implements Node { id: ID! } type Post implements Node { id: ID! }
# User subschema scalar _Any type Query { _entities(representations: [_Any!]!): [_Entity]! } union _Entity = User interface Node { id: ID! } type User implements Node { id: ID! name: String! }
# Post subschema scalar _Any union _Entity = Post type Query { _entities(representations: [_Any!]!): [_Entity]! } interface Node { id: ID! } type Post implements Node { id: ID! title: String! }
-
Updated dependencies [
680351e
]:- @graphql-tools/delegate@10.0.9
- @graphql-tools/stitch@9.2.7
@graphql-tools/stitch@9.2.7
Patch Changes
-
#6126
680351e
Thanks @ardatan! - When there is a Node subschema, and others to resolve the rest of the entities by using a union resolver as in Federation like below, it was failing. This version fixes that issue.query { node(id: "1") { id # Fetches from Node ... on User { name # Fetches from User } } }
type Query { node(id: ID!): Node } interface Node { id: ID! } type User implements Node { id: ID! } type Post implements Node { id: ID! }
# User subschema scalar _Any type Query { _entities(representations: [_Any!]!): [_Entity]! } union _Entity = User interface Node { id: ID! } type User implements Node { id: ID! name: String! }
# Post subschema scalar _Any union _Entity = Post type Query { _entities(representations: [_Any!]!): [_Entity]! } interface Node { id: ID! } type Post implements Node { id: ID! title: String! }
-
Updated dependencies [
680351e
]:- @graphql-tools/delegate@10.0.9