Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.05 KB

Readme.md

File metadata and controls

59 lines (40 loc) · 1.05 KB

Simple example with node + graphql.

How to use

yarn install 
yarn start

How to test

Open the interactive explorer http://localhost:3000/graphiql

Execute some tests like that:

Especific user

{
  user(id: 2) {
    id
    name
    knowledge {
      language
      frameworks
    }
  }
}

All users

{
  allUsers
  totalUsers
}

Test with httpie

http POST http://localhost:3000/graphql query="{user(id:2){id,name,knowledge{language,frameworks}}}"

Stack