enisdenjo / graphql-composite

Spec agnostic GraphQL composite schema planner, executor and explainer.
MIT License
7 stars 0 forks source link
composite execution federation gateway graphql planning

graphql-composite

[!CAUTION] Alpha stage.

Spec agnostic GraphQL composite schema planner, executor and explainer.

Features

Get started

See plan, gather and execute tests, and the accompanying fixtures.

How does it work?

  1. Parse a GraphQL composite schema to a Blueprint
  2. Create a GatherPlan using the Blueprint and a GraphQL.js document
  3. 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.