@sailrs/stitch
v0.1.0
Published
General graphql stitching for sailrs apps
Downloads
1
Readme
Simple Bun based graphql stitching
A general solution for stitching together multiple graphql endpoints into one
What is graphql stitching
GraphQL stitching is a way to combine multiple GraphQL APIs into a single API. It is useful when you have multiple services that each expose a GraphQL API, and you want to combine them into a single API.
Prerequisites
This project was based on Bun to ensure it's function install bun fist by
curl -fsSL https://bun.sh/install | bash # for macOS, Linux, and WSL
How to use this
To use this you have to create a stitchingconfiguration and run the following
bun add @sailrs/stitch
bunx --bun stitch --config=./stitchify.config.ts
How to add a graphql endpoint
This graphql server has to know several things about the graphql api you want to stitch on. All this information belongs to the subgraphs.ts