GraphQLBundle icon indicating copy to clipboard operation
GraphQLBundle copied to clipboard

Resolve root query type in mutation payload type

Open strelcov opened this issue 5 years ago • 0 comments

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

strelcov avatar Aug 19 '20 13:08 strelcov