Skip to content

mgilbey/graphql-tools-stitching-errors

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql-tools-stitching-errors

Repo demonstrating issues with graphql-tools error stitching.

Steps

git clone https://github.com/mgilbey/graphql-tools-stitching-errors.git
cd graphql-tools-stitching-errors
npm ci
npm start

Test good response (no stitching):

curl -X POST http://localhost:3000/graphql \
  -H 'Content-Type:application/json' \
  -H 'Accept:application/json' \
  -d '{"query":"query{cars{inventory}}"}'

Test bad response (stitching):

curl -X POST http://localhost:3001/graphql \
  -H 'Content-Type:application/json' \
  -H 'Accept:application/json' \
  -d '{"query":"query{cars{inventory}}"}'

Test bad response (remote stitching):

curl -X POST http://localhost:3002/graphql \
  -H 'Content-Type:application/json' \
  -H 'Accept:application/json' \
  -d '{"query":"query{cars{inventory}}"}'

About

Repro demonstrating issues with graphql-tools error stitching.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%