Skip to content

guilouro/simple-graphql-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple graphql server example with Node.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published