You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
emit an event to the Redis instance on the `new_product` topic
60
+
this:
61
+
62
+
```redis
63
+
PUBLISH new_product '{"id":"roomba70x"}'
64
+
```
65
+
66
+
The subscriber will then receive the following event:
67
+
68
+
```json
69
+
{
70
+
"data": {
71
+
"newProduct": {
72
+
"name": "Roomba 70x",
73
+
"price": 279.99
74
+
}
75
+
}
76
+
}
77
+
```
78
+
79
+
Because Hive Gateway merged the `Product` type from the `products` subgraph into the root schema, it can resolve the `name` and `price` fields even though they are not defined in the `additionalTypeDefs`.
0 commit comments