/graphql_playground

GraphQL Playground

Primary LanguageJavaScriptEclipse Public License 2.0EPL-2.0

GraphQL Playground

Playground to get hands-on feeling for examples provided by Luis Aguilar.

Delta to Description

Install JS Stuff:

npm install --save graphql
npm install --save express-graphql
npm install --save express

Run the Demo

Step 1: Run the server app

node server.js

Step 2: Open the GraphiQL Page in the Browser

localhost:4001/graphql?query=query{users{id%2Clogin}}

Step 3: Check Result using Command Line

curl -X POST -H "Content-Type: application/json" -d '{"query": "{ users { id, login }}"}' http://localhost:4001/graphql