https://github.com/charlypoly/graphql-mesh-docs-first-gateway
Example API services for https://www.graphql-mesh.com/docs
https://github.com/charlypoly/graphql-mesh-docs-first-gateway
Last synced: 12 months ago
JSON representation
Example API services for https://www.graphql-mesh.com/docs
- Host: GitHub
- URL: https://github.com/charlypoly/graphql-mesh-docs-first-gateway
- Owner: charlypoly
- License: mit
- Created: 2022-03-31T13:44:52.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2025-06-11T13:39:28.000Z (about 1 year ago)
- Last Synced: 2025-06-11T14:50:59.710Z (about 1 year ago)
- Language: TypeScript
- Size: 10.7 MB
- Stars: 21
- Watchers: 1
- Forks: 28
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 /books`
- `GET /books/:id`
- `GET /books/categories`
### Authors API (gRPC)
- `GetAuthor`
- `ListAuthors`
### Stores (GraphQL)
- `stores` Query
- `bookSells(storeId: ID!)` Query