Skip to content

Latest commit

 

History

History
73 lines (57 loc) · 1.09 KB

File metadata and controls

73 lines (57 loc) · 1.09 KB

GraphQL Code

Clone Repository

git clone https://github.com/sadabnepal/graphql-full-stack-kit.git
cd graphql-full-stack-kit

Pre-requisite

NodeJs

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"
}

query {
  burgers(where: {vegan: true, inStock: true}) {
    calories
    vegan
    cheese
    description
    name
  }
}

TODO:

burger