Rename the `result(s)` field if a GraphQL mutation output
Right now, if I create a mutation with Ash, the output data will be inside the
result
or results
field (see image).
Is there some way to me to customize that name without having to create the whole mutation by hand?
For example, in the case of the image, I would like that instead of result
the key would be offer

5 Replies
There is not a way currently, but we could support that feature pretty easily 🙂
We just hardcode the “result” key but could make it configurable.
That would be super, it would stop my frontend devs from complaining about things that don't matter 😅
Can you make an issue in ash_graphql? I could also guide you to what would need to change and you could make the PR?
Ofc, I will do it ASAP
There you go https://github.com/ash-project/ash_graphql/issues/57
GitHub
Allow customization of key
result(s)
with mutations · Issue #57 ·...Is your feature request related to a problem? Please describe. Right now when you create a mutation with AshGraphQL, the output data will be inside the result or results field. Some people prefer t...