Allows anyone to explore graphql know-hows with zero setup needed (except for pre-requisites stated below).
Uses graphpack (https://github.com/glennreyes/graphpack) as the zero-config graphql server / runtime to kick-start.
- There is no need to install graphpack and related dependencies; the git clone would provide the entire packages required.
- Install nodejs if you haven't, which also installs npm
- Git clone the entire repo
- On your terminal, type
npm run dev
- You should see message 🚀 Server ready at http://localhost:4000/
- Point your browser to the above URL and you will see graphql playground being launched.
- Enjoy your queries, mutations and exploration!
./src/schema.graphql
- defines the SDL for your types, query, mutation, subscription, enums etc./src/resolvers.js
- logic to handle query, mutation, subscription./src/db/js
- simple JSON based data source for your own crafting; remmber to change thetype
definition inschema.graphql
if you define more datasets.
LICENSE: This project is licensed under the terms of the MIT license.