Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 861 Bytes

README.md

File metadata and controls

39 lines (30 loc) · 861 Bytes

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}}"}'