GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.
Check out GraphQL's official documentation here!
My preference for package management is Yarn. Consequently my examples are also in yarn. But you can use NPM.
Install all Dependencies (Yarn or NPM).
yarn installornpm install
Start Express Server.
yarn dev:serverornpm run dev:server
Start JSON server to serve dummy data. This can be replaced with a real API service and database.
yarn json:serverornpm run json:server
Open GraphiQL at http://localhost:4000 in your browser to perform queries and mutations.
🥤 Feel free to fork this repo and open a pull request.
Find me on Twitter at: @RiversJonas