Skip to content

thomasparsons/graphql-example

Repository files navigation

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
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published