graphql-mesh-docs-first-gateway
graphql-mesh-docs-first-gateway copied to clipboard
Example API services for https://www.graphql-mesh.com/docs
GraphQL Mesh Services examples
Setup
yarn install
Build all APIs
yarn workspaces run foreach build
Examples
Start the single source (Books Gateway) Mesh Gateway
yarn run start-single-source
More information on https://graphql-mesh.com/docs/getting-started/your-first-mesh-gateway.
Start the single source (Books API without definition) Mesh Gateway
yarn run start-single-source-no-source-definition
More information on https://graphql-mesh.com/docs/getting-started/sources-with-no-definition
Start the multiple sources Mesh Gateway
yarn run start-multiple-sources
More information on https://graphql-mesh.com/docs/getting-started/combine-many-sources.
Start the multiple sources Mesh Gateway (with programmatic resolvers)
yarn run start-multiple-sources-prog-resolvers
More information on https://graphql-mesh.com/docs/guides/extending-unified-schema#extending-the-unified-schema.
Services
Books API (OpenAPI)
GET /booksGET /books/:idGET /books/categories
Authors API (gRPC)
GetAuthorListAuthors
Stores (GraphQL)
storesQuerybookSells(storeId: ID!)Query