Skip to content

[Question] Return the query root in a mutation response payload #1169

Answered by smyrick
rocketraman asked this question in Q&A
Discussion options

You must be logged in to vote

Update on this, with the addition of @GraphQLType you can now just set the return type to a type reference and this works

@GraphQLType("Query")
fun doSomethingAndGetQuery(): Any {
      return Any()
}

Replies: 3 comments 16 replies

Comment options

You must be logged in to vote
3 replies
@smyrick
Comment options

@smyrick
Comment options

@rocketraman
Comment options

Comment options

You must be logged in to vote
12 replies
@rocketraman
Comment options

@smyrick
Comment options

@koenpunt
Comment options

@rocketraman
Comment options

@rocketraman
Comment options

Comment options

You must be logged in to vote
1 reply
@rocketraman
Comment options

Answer selected by rocketraman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #1167 on May 29, 2021 18:14.