/graphql-mesh-docs-first-gateway

Example API services for https://www.graphql-mesh.com/docs

Primary LanguageTypeScriptMIT LicenseMIT

GraphQL Mesh Services examples

Setup

Build all APIs

yarn workspaces run 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 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 /books
  • GET /books/:id
  • GET /books/categories

Authors API (gRPC)

  • GetAuthor
  • ListAuthors

Stores (GraphQL)

  • stores Query
  • bookSells(storeId: ID!) Query