Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve root query type in mutation payload type #748

Open
strelcov opened this issue Aug 19, 2020 · 0 comments
Open

Resolve root query type in mutation payload type #748

strelcov opened this issue Aug 19, 2020 · 0 comments

Comments

@strelcov
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant