How to customize the mutation field name for the request body?
See original GitHub issueLet me know if you need more clarification, but essentially, I know that I am able to change the query or mutation name via adding an operationId value to the OpenAPI spec for various endpoints.
However, is there an equivalent for changing the argument name for a generated mutation?
mutation { customizedMutationName(generatedInputName: [JSON in request body]) }
Here, I would like to customize the value of generatedInputName to just be body.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Queries and Mutations - GraphQL
The field name returns a String type, in this case the name of the main hero ... set of arguments - the query...
Read more >GraphQL schema basics - Apollo GraphQL Docs
Structuring a mutation. Like queries, mutations match the structure of your schema's type definitions. The following mutation creates a new Book and requests...
Read more >How to Implement a GraphQL Mutation - StepZen
Create a Mutation Type ... The mutation performs a POST to https://api.sendgrid.com/v3/mail/send . You need to send the body through the postbody field...
Read more >3. Adding mutations to your API - GraphQL Nexus
Your first mutation · Add an args property to the field definition to define its args. Keys are arg names and values are...
Read more >How to add additional request body values to Apollo GraphQL ...
form.append("variables", JSON.stringify({ "input": { "name" ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@Alan-Cha I finally got around to making the edits needed to implement a new option that sets a generic arg name for mutation request bodies. I tried pushing up my local branch to remote in order to make a PR, but I am not able to.
I apologize if this is obvious, but what are the steps to create a new PR? Should I be forking this repo first?
Dope, will put it on my to-do list. I rarely do open-source work, so I would love to help out!