graphql pass array as argument to mutation code example
Example 1: graphql pass array as argument
//use type modifers. [] for arrays.
type Query {
Items(id:[ID]) : [item]
}
Example 2: how to pass array in mutation playground
var MovieSchema = `
type Movie {
name: String
}
input MovieInput {
name: String
}
mutation {
addMovies(movies: [MovieInput]): [Movie]
}
`