0

I am using AddMutationConventions() to save me from writing boilerplate code. However I want to add a field query: Query to each Payload. Is that possible in combination with AddMutationConventions() or do I have to write my own Payload by hand in that case?

stefan.at.kotlin
  • 15,347
  • 38
  • 147
  • 270

1 Answers1

1

As mentioned in my comment, you can automatically add the query field to all mutation payloads with this configuration option:

services
    .AddGraphQLServer()
    .AddQueryFieldToMutationPayloads();

Reference

Tobias Tengler
  • 6,848
  • 4
  • 20
  • 34