graphql / graphql/graphql.github.io
documentation should include `__resolveType` requirement for Union Type to return interface
オープン
✏️ Editorial
- 主要言語
- TypeScript
- スター
- 889
- フォーク
- 1.5k
- 平均マージ
- 4日 12時間
- マージ済み PR(30日)
- 21
説明
There's no mention in the documentation that Union Types require a `__resolveType` field in the Resolver for the Union.
a good example of helpful information can be found at [Apollo's Documentation](https://www.apollographql.com/docs/graphql-tools/resolvers.html#Unions-and-interfaces)
> When you have a field in your schema that returns a union or interface type, you will need to specify an extra __resolveType field in your resolver map, which tells the GraphQL executor which type the result is, out of the available options.
コントリビューションガイド
評価
この issue はまだ評価されていません。