Skip to content

Express middleware for demonstrating query splitting into multiple documents

Notifications You must be signed in to change notification settings

fsferrara/graphql-query-splitting-express

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL routing / query splitting

The idea is to split a query and map into separate documents to be handled with distinct destionations.

Example in test.

npm test

Example express server

node example/server.js

and then

curl --url "http://localhost:3000/graphql" --request POST --header "Content-Type: application/json" --data '{"query": "query { foo, bar }"}'

About

Express middleware for demonstrating query splitting into multiple documents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%