Skip to content

Commit 5b8b51c

Browse files
committed
remove dead links, add new videos.
1 parent 41270ea commit 5b8b51c

8 files changed

Lines changed: 15 additions & 13 deletions

File tree

01-combining-local-and-remote-schemas/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

02-single-record-type-merging/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

03-array-batched-type-merging/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

combining-local-and-remote-schemas/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This example explores basic techniques for combining local and remote schemas to
1717
## Setup
1818

1919
```shell
20-
cd 01-combining-local-and-remote-schemas
20+
cd combining-local-and-remote-schemas
2121

2222
yarn install
2323
yarn start-services

mutations-and-subscriptions/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This example explores stitching mutation and subscription services into a combin
1111
## Setup
1212

1313
```shell
14-
cd 05-mutations-and-subscriptions
14+
cd mutations-and-subscriptions
1515

1616
yarn install
1717
yarn start-services

stitching-directives-sdl/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Chapter 9 – Stitching directives SDL
22

3+
**Watch the [Chapter 9 Video](https://www.youtube.com/watch?v=dE9cJsxOLeQ)**
4+
5+
[![Stitching Directives SDL](../images/video-player.png)](https://www.youtube.com/watch?v=dE9cJsxOLeQ)
6+
37
This example demonstrates the use of stitching directives to configure type merging via subschema SDLs. Shifting this configuration out of the gateway makes subschemas autonomous, and allows them to push their own configuration up to the gateway—enabling more sophisticated schema releases.
48

59
The `@graphql-tools/stitching-directives` package provides importable directives that can be used to annotate types and fields within subschemas, a validator to ensure the directives are used appropriately, and a configuration transformer that can be used on the gateway to convert the subschema directives into explicit configuration setting.

type-merging-interfaces/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Chapter 5 – Cross-service interfaces
22

3+
**Watch the [Chapter 5 Video](https://www.youtube.com/watch?v=wPB5oI_Tjik)**
4+
5+
[![Cross-service interfaces](../images/video-player.png)](https://www.youtube.com/watch?v=wPB5oI_Tjik)
6+
37
This example explores setting up a GraphQL interface that spans across service boundaries, as described in the [merged interfaces documentation](https://www.graphql-tools.com/docs/stitch-type-merging#merged-interfaces). This is an extremely powerful feature made possible by the flexibility of type merging, yet it's easy to overlook.
48

59
**This example demonstrates:**
@@ -9,7 +13,7 @@ This example explores setting up a GraphQL interface that spans across service b
913
## Setup
1014

1115
```shell
12-
cd 04-cross-service-interfaces
16+
cd cross-service-interfaces
1317

1418
yarn install
1519
yarn start-gateway

type-merging-interfaces/services/storefronts/schema.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ const productDeals = [
3434
// graphql resolvers
3535
const resolvers = {
3636
Query: {
37-
storefront: (root, { id }) => storefronts.find(s => s.id === id) || new NotFoundError(),
37+
storefront: (root, { id }, _, info) => {
38+
console.log(require('graphql').print(info.operation));
39+
return storefronts.find(s => s.id === id) || new NotFoundError()
40+
},
3841
},
3942
Storefront: {
4043
products(storefront) {

0 commit comments

Comments
 (0)