git clone https://github.com/sadabnepal/graphql-full-stack-kit.git
cd graphql-full-stack-kit
npm install
npm start
http://localhost:8000/graphql
query Burger($name: String!, $vegan: Boolean!) {
burger (name: $name) {
id
name
tomato
cheese @skip(if: $vegan)
inStock
price
}
}
variable
{
"vegan": false,
"name": "Veggie Delight"
}
query {
burgers(where: {vegan: true, inStock: true}) {
calories
vegan
cheese
description
name
}
}
- Implement Burger concept in graphql query and mutation
- Open Source GraphQL playground https://apis.guru/graphql-apis
- Refer https://hygraph.com/blog/graphql-vs-rest-apis