GraphQL - Working with Arrays

From Logic Wiki
Jump to: navigation, search


  type Query {
      title: String!
      grades: [Int!]!
 ......


const resolvers = {
  Query: {
    title() {
      return 'The War of Art';
    },
    grades() {
      return [99,80,93];
    },