How can i run one mutation multiple times with different arguments in one request?
问题 I have a mutation: const createSomethingMutation = gql` mutation($data: SomethingCreateInput!) { createSomething(data: $data) { something { id name } } } `; How do I create many Something s in one request? Do I need to create a new Mutation on my GraphQL server like this: mutation { addManySomethings(data: [SomethingCreateInput]): [Something] } Or is there a way to use the one existing createSomethingMutation from Apollo Client multiple times with different arguments in one request? 回答1: You