graphql-client
graphql-client copied to clipboard
How to chain operations
Hello guys, Thanks for your work, I am running into a small issue and I would like to know how to do this. I need to call an graphql API, and I need to be able to call N update on a certain action. I do not know in advance how many operation I will have to run and I understood that dynamic string is not an option.
I know that GraphQL allow to chain operation. I want to perform something like this:
mutation BulkUpdate {
update_33: updateTestRunStep( stepId: "809de35b-fd5f-49bc-b9bd-d07ec72ddeba", updateData: { comment: "1 execution passed", status: "PASSED"} ) { warnings }
update_34: updateTestRunStep( stepId: "71e8ea89-89a0-48e6-ac8d-ac2eede33dee", updateData: { comment: "1 execution passed", status: "PASSED"} ) { warnings }
}
Do you know if there is anyway either to construct the request like a hash? Or chain N operations?