It has taken a little time for technology like GraphQL to settle in. I find myself in conversations with folks about the use of GraphQL and whether or not it makes sense to use for their project. Maybe GraphQL is good for you, perhaps it is too soon - but…
2 posts tagged
GraphQL
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:…