GraphQLBundle
GraphQLBundle copied to clipboard
Resolve root query type in mutation payload type
| Q | A |
|---|---|
| Bug report? | no |
| Feature request? | yes |
| BC Break report? | no |
| RFC? | no |
| Version/Branch | 0.13 |
Hi, can I implement that behavior?
type Mutation {
likePost(id: 1): LikePostPayload
}
type LikePostPayload {
record: Post
+ query: Query
}
I can define root query field in payload type, but how can I resolve it in mutation? I saw it on https://graphql-rules.com/rules/mutation-payload-query