GraphQL mutation that accepts an array of dynamic size and common scalar types in one request
You can pass an array like this var MovieSchema = ` type Movie { name: String } input MovieInput { name: String } mutation { addMovies(movies: [MovieInput]): [Movie] } ` Then in your mutation, you can pass an array like mutation { addMovies(movies: [{name: ‘name1’}, {name: ‘name2′}]) { name } } Haven’t tested the code … Read more