Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 422 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 422 Bytes

An example of a GraphQl application

Get Started

Clone the repo...

Install node modules for the graph side: yarn | npm i

To Run

yarn start | npm run start - will run on PORT :3001

Queries

go to localhost:3001 and paste in this query:

query {
  getDogs {
    ...petInfo
  }
  getCats {
    ...petInfo
    humanAge: age(humanYears: true)
  }
}

fragment petInfo on PetInfo {
  name
  age
}