npm install
npm start
Browse to http://localhost:3000/graphiql
Example query:
query {
search(query: "jeans", offset: 4, limit:4) {
total
results {
id
name
description
price
}
}
}
# Get some validation errors
echo '{"asdf":4 }' | node ./development/run src/validator
# Also available as
npm run demo:validator:error
# Try a valid search result
cat ./development/search_result.json | node ./development/run src/validator
# Also available as
npm run demo:validator
An example client is availabe at src/client.js.
# Run the client
npm run run demo:client