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

Allow customization of key result(s) with mutations #57

Open
sezaru opened this issue Feb 16, 2023 · 0 comments
Open

Allow customization of key result(s) with mutations #57

sezaru opened this issue Feb 16, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@sezaru
Copy link

sezaru commented Feb 16, 2023

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 to have the resource name there instead of a generic one.

For example, if the resource being returned is Offer, then the key would be offer or offers.

Describe the solution you'd like
I would like to have some options that I add to the mutation to customize that key name.

Describe alternatives you've considered
I can achieve that if I create the whole mutation manually, but that kinda defeats the purpose of using Ash

@sezaru sezaru added the enhancement New feature or request label Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant