graphql-composite
[!CAUTION]
Alpha stage.
Spec agnostic GraphQL composite schema planner, executor and explainer.
Features
- Zero-dependency
- Not at the moment because I am lazy - see deps - they'll be dropped in future iterations
- Spec agnostic
- Even specless since you can design your own Blueprint
- Runs in any environment
- Stable plans and explanations
- Everything's JSON serialisable, all steps until execution can be cached
Get started
See plan, gather and execute tests, and the accompanying fixtures.
How does it work?
- Parse a GraphQL composite schema to a Blueprint
- Create a GatherPlan using the Blueprint and a GraphQL.js document
- Execute a query using the GatherPlan
- Execution will create a ready-to-use GraphQL response and an ExecutionExplain explaining the steps
*Blueprint, GatherPlan as well as ExecutionExplain are serialisable to JSON.