Skip to content

An example project of graphql by using express-graphql

Notifications You must be signed in to change notification settings

hom/express-graphql-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-graphql-example

An example project of express-graphql

Start

  1. Install node modules
yarn install
  1. Run graphql server
node index.js
  1. Fetch graphql example data
curl -X POST \
     -H "Content-Type: application/json" \
     -d '{"query": "{ hello }"}' \
http://localhost:4000/graphql

# output:
{"data":{"hello":"Hello World"}}

About

An example project of graphql by using express-graphql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published