Skip to content

dotexe0/graphql-fullstack-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

GraphQL

A graphql full stack example on how to connect a UI to an API

UI

cd ui
npm install
npm start

navigate to localhost:4000

API

cd api
npm install
npm start

navigate to localhost:4000

example queries:

query getLifts {
  allLifts {
    id
    name
    status
  }
}

mutation setLiftStatus {
  setLiftStatus(id:"astra-express" status:HOLD) {
    status
  }
}

Releases

No releases published

Packages

No packages published