These are some really basic GraphQL examples
You need node to exec the examples.
To run the examples, exec in the terminal node filename
Example: node /initial/index.js
For all the examples, except the ones in initial, exec in the terminal node filename and open http://localhost:3000/graphql
- Start in /initial/index.js
- How to work with collections /initial/video-collection.js
- Check how to use graphql and express express/use-express-graphql.js
- How to write a schema with js express/js-graphql-schema.js
- Query videos by specific ID using argsinquery/query-by-id.js
- How to define required args with GraphQLNonNullinquery/non-null.js
- Return a collection of videos with GraphQLListinquery/resolve-all-videos.js
- Mutations! Add a new video to the collection mutations/mutation.js
- Input types, organize args in mutations: mutations/input-type.js