For an example. I have an array of things that I want to save with one request.
Without graphql-client it would look something like this.
const query = `
mutation {
${things.map((x, i) => `
m${i}: createThing(data: {name: "${x.name}"}) { id }
`).join(' ')}
}`
How would you do it with graphql-client making use of variables?