Skip to content

Latest commit

 

History

History
65 lines (51 loc) · 830 Bytes

readme.md

File metadata and controls

65 lines (51 loc) · 830 Bytes

GraphQL Code

Clone Repository

git clone https://github.com/sadabnepal/graphql-dev-test.git
cd graphql-dev-test

Install Packages

npm install

Start Server

npm start

Graphical View

http://localhost:8000/graphql

GraphQl Server

graphql

Sample Query:

query Burger($name: String!, $vegan: Boolean!) {
  burger (name: $name) {
    id
    name
    tomato
    cheese @skip(if: $vegan)
    inStock
    price
  }
}


variable

{
  "vegan": false,
  "name": "Veggie Delight"
}

TODO:

{
  burgers(where: { name: "cheeseburger"})
        name 
        description 
        price 
        calories   
        inStock 
}