smallrye-graphql icon indicating copy to clipboard operation
smallrye-graphql copied to clipboard

Support for returning void from GraphQL Mutation

Open zbhavyai opened this issue 3 years ago • 0 comments

By default GraphQL does not support returning nothing. It would be nice to have return void or Uni<Void> from a GraphQL mutation in the smallrye's implementation. Right now, if a mutation returns void, an exception is thrown graphql.AssertException: type Void not found in schema. I am using smallrye-graphql extension in Quarkus.

Related discussion is https://github.com/quarkusio/quarkus/discussions/25381.

Thank you.

zbhavyai avatar May 05 '22 04:05 zbhavyai