GraphQL Schema Design for Returning Lists of Things

How to define a graphQL type and build a schema that will return an instance or collection of the same type. Dummy data const people = [ { "_id": "1", "firstName": "John", "lastName": "Masse" }, { "_id": "2", "firstName": "Joe", "lastName": "Random" }, ]; Building the Person type const Person = new GraphQLObjectType( { name: 'Person', fields: { _id: { type:…

Read More