Skip to content

Commit

Permalink
Programmatic resolvers example
Browse files Browse the repository at this point in the history
  • Loading branch information
charlypoly committed Apr 7, 2022
1 parent 2c910aa commit 599c36c
Show file tree
Hide file tree
Showing 11 changed files with 5,394 additions and 2 deletions.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# GraphQL Mesh Services examples

## Getting started
## Setup


### Build all APIs
Expand All @@ -9,6 +9,9 @@
yarn workspaces run build
```

<p>&nbsp;</p>

## Examples

### Start the single source (Books Gateway) Mesh Gateway

Expand Down Expand Up @@ -41,8 +44,23 @@ yarn run start-multiple-sources

More information on https://graphql-mesh.com/docs/getting-started/combine-many-sources.

<p>&nbsp;</p>

### 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.


<p>&nbsp;</p>

----

<p>&nbsp;</p>

## Services

### Books API (OpenAPI)
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"scripts": {
"start-single-source": "concurrently --kill-others \"yarn workspace books-service start\" \"yarn workspace mesh-single-source start\"",
"single-source-no-source-definition": "concurrently --kill-others \"yarn workspace books-service start\" \"yarn workspace single-source-no-source-definition start\"",
"start-multiple-sources": "concurrently --kill-others \"yarn workspace authors-service start\" \"yarn workspace stores-service start\" \"yarn workspace books-service start\" \"yarn workspace mesh-multiple-sources start\""
"start-multiple-sources": "concurrently --kill-others \"yarn workspace authors-service start\" \"yarn workspace stores-service start\" \"yarn workspace books-service start\" \"yarn workspace mesh-multiple-sources start\"",
"start-multiple-sources-prog-resolvers": "concurrently --kill-others \"yarn workspace authors-service start\" \"yarn workspace stores-service start\" \"yarn workspace books-service start\" \"yarn workspace multiple-sources-prog-resolvers start\""
},
"dependencies": {
"concurrently": "^7.0.0"
Expand Down
Loading

0 comments on commit 599c36c

Please sign in to comment.