@graphql-yoga/nestjs-federation 3.19.1-alpha-20260116123221-00be7ff3144cd673842095ee2de4313d4c41e4e7 → 3.19.1-alpha-20260116132831-dc9fc0ad2f1ad6ee99bc438c173cf8496ae505a7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -1
- package/CHANGELOG.md +0 -670
- package/src/index.ts +0 -129
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-yoga/nestjs-federation",
|
|
3
|
-
"version": "3.19.1-alpha-
|
|
3
|
+
"version": "3.19.1-alpha-20260116132831-dc9fc0ad2f1ad6ee99bc438c173cf8496ae505a7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "GraphQL Yoga driver with Apollo Federation for NestJS GraphQL.",
|
|
6
6
|
"repository": {
|
|
@@ -33,6 +33,9 @@
|
|
|
33
33
|
},
|
|
34
34
|
"./package.json": "./package.json"
|
|
35
35
|
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist"
|
|
38
|
+
],
|
|
36
39
|
"keywords": [
|
|
37
40
|
"graphql",
|
|
38
41
|
"server",
|
package/CHANGELOG.md
DELETED
|
@@ -1,670 +0,0 @@
|
|
|
1
|
-
# @graphql-yoga/nestjs-federation
|
|
2
|
-
|
|
3
|
-
## 3.19.1-alpha-20260116123221-00be7ff3144cd673842095ee2de4313d4c41e4e7
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- [#4320](https://github.com/graphql-hive/graphql-yoga/pull/4320)
|
|
8
|
-
[`519f73b`](https://github.com/graphql-hive/graphql-yoga/commit/519f73bc80c8d3d8c19c14a0f59e01ef48dc5a00)
|
|
9
|
-
Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
|
10
|
-
- Updated dependency
|
|
11
|
-
[`@envelop/apollo-federation@workspace:^` ↗︎](https://www.npmjs.com/package/@envelop/apollo-federation/v/workspace:^)
|
|
12
|
-
(from `^8.0.0`, in `dependencies`)
|
|
13
|
-
- Updated dependency
|
|
14
|
-
[`@envelop/core@workspace:^` ↗︎](https://www.npmjs.com/package/@envelop/core/v/workspace:^)
|
|
15
|
-
(from `^5.3.0`, in `dependencies`)
|
|
16
|
-
- Added dependency
|
|
17
|
-
[`reflect-metadata@^0.1.12 || ^0.2.0` ↗︎](https://www.npmjs.com/package/reflect-metadata/v/0.1.12)
|
|
18
|
-
(to `peerDependencies`)
|
|
19
|
-
- Added dependency [`rxjs@^7.1.0` ↗︎](https://www.npmjs.com/package/rxjs/v/7.1.0) (to
|
|
20
|
-
`peerDependencies`)
|
|
21
|
-
- Updated dependencies
|
|
22
|
-
[[`519f73b`](https://github.com/graphql-hive/graphql-yoga/commit/519f73bc80c8d3d8c19c14a0f59e01ef48dc5a00)]:
|
|
23
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.18.1-alpha-20260116123221-00be7ff3144cd673842095ee2de4313d4c41e4e7
|
|
24
|
-
- @graphql-yoga/nestjs@3.19.1-alpha-20260116123221-00be7ff3144cd673842095ee2de4313d4c41e4e7
|
|
25
|
-
|
|
26
|
-
## 3.19.0
|
|
27
|
-
|
|
28
|
-
### Patch Changes
|
|
29
|
-
|
|
30
|
-
- Updated dependencies []:
|
|
31
|
-
- @graphql-yoga/nestjs@3.19.0
|
|
32
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.18.0
|
|
33
|
-
|
|
34
|
-
## 3.18.1
|
|
35
|
-
|
|
36
|
-
### Patch Changes
|
|
37
|
-
|
|
38
|
-
- Updated dependencies []:
|
|
39
|
-
- @graphql-yoga/nestjs@3.18.1
|
|
40
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.17.1
|
|
41
|
-
|
|
42
|
-
## 3.18.0
|
|
43
|
-
|
|
44
|
-
### Patch Changes
|
|
45
|
-
|
|
46
|
-
- Updated dependencies []:
|
|
47
|
-
- @graphql-yoga/nestjs@3.18.0
|
|
48
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.17.0
|
|
49
|
-
|
|
50
|
-
## 3.17.1
|
|
51
|
-
|
|
52
|
-
### Patch Changes
|
|
53
|
-
|
|
54
|
-
- [#4278](https://github.com/graphql-hive/graphql-yoga/pull/4278)
|
|
55
|
-
[`b8d2f70`](https://github.com/graphql-hive/graphql-yoga/commit/b8d2f705a0461ede3ce190c49c4f55f98d5381f2)
|
|
56
|
-
Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
|
|
57
|
-
- Updated dependency
|
|
58
|
-
[`@envelop/apollo-federation@^8.0.0` ↗︎](https://www.npmjs.com/package/@envelop/apollo-federation/v/8.0.0)
|
|
59
|
-
(from `^7.0.0`, in `dependencies`)
|
|
60
|
-
- Updated dependencies
|
|
61
|
-
[[`b8d2f70`](https://github.com/graphql-hive/graphql-yoga/commit/b8d2f705a0461ede3ce190c49c4f55f98d5381f2)]:
|
|
62
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.16.2
|
|
63
|
-
- @graphql-yoga/nestjs@3.17.1
|
|
64
|
-
|
|
65
|
-
## 3.17.0
|
|
66
|
-
|
|
67
|
-
### Patch Changes
|
|
68
|
-
|
|
69
|
-
- Updated dependencies
|
|
70
|
-
[[`3705256`](https://github.com/graphql-hive/graphql-yoga/commit/370525642b908d78c1d6238bf12c033a18cad0cd)]:
|
|
71
|
-
- @graphql-yoga/nestjs@3.17.0
|
|
72
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.16.1
|
|
73
|
-
|
|
74
|
-
## 3.16.0
|
|
75
|
-
|
|
76
|
-
### Patch Changes
|
|
77
|
-
|
|
78
|
-
- Updated dependencies []:
|
|
79
|
-
- @graphql-yoga/nestjs@3.16.0
|
|
80
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.16.0
|
|
81
|
-
|
|
82
|
-
## 3.15.2
|
|
83
|
-
|
|
84
|
-
### Patch Changes
|
|
85
|
-
|
|
86
|
-
- Updated dependencies []:
|
|
87
|
-
- @graphql-yoga/nestjs@3.15.2
|
|
88
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.15.2
|
|
89
|
-
|
|
90
|
-
## 3.15.1
|
|
91
|
-
|
|
92
|
-
### Patch Changes
|
|
93
|
-
|
|
94
|
-
- Updated dependencies []:
|
|
95
|
-
- @graphql-yoga/nestjs@3.15.1
|
|
96
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.15.1
|
|
97
|
-
|
|
98
|
-
## 3.15.0
|
|
99
|
-
|
|
100
|
-
### Patch Changes
|
|
101
|
-
|
|
102
|
-
- Updated dependencies []:
|
|
103
|
-
- @graphql-yoga/nestjs@3.15.0
|
|
104
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.15.0
|
|
105
|
-
|
|
106
|
-
## 3.14.0
|
|
107
|
-
|
|
108
|
-
### Patch Changes
|
|
109
|
-
|
|
110
|
-
- [#4087](https://github.com/graphql-hive/graphql-yoga/pull/4087)
|
|
111
|
-
[`6e04a7f`](https://github.com/graphql-hive/graphql-yoga/commit/6e04a7ff03295d5f12277b8f48428ba61f46f58e)
|
|
112
|
-
Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
|
|
113
|
-
- Updated dependency
|
|
114
|
-
[`@envelop/apollo-federation@^7.0.0` ↗︎](https://www.npmjs.com/package/@envelop/apollo-federation/v/7.0.0)
|
|
115
|
-
(from `^6.1.3`, in `dependencies`)
|
|
116
|
-
|
|
117
|
-
- [#4088](https://github.com/graphql-hive/graphql-yoga/pull/4088)
|
|
118
|
-
[`98c82a5`](https://github.com/graphql-hive/graphql-yoga/commit/98c82a5d70040f488d72cfda52b8afa81b5da2a1)
|
|
119
|
-
Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
|
120
|
-
- Updated dependency
|
|
121
|
-
[`@envelop/core@^5.3.0` ↗︎](https://www.npmjs.com/package/@envelop/core/v/5.3.0) (from
|
|
122
|
-
`^5.2.3`, in `dependencies`)
|
|
123
|
-
- Updated dependencies
|
|
124
|
-
[[`6e04a7f`](https://github.com/graphql-hive/graphql-yoga/commit/6e04a7ff03295d5f12277b8f48428ba61f46f58e)]:
|
|
125
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.14.0
|
|
126
|
-
- @graphql-yoga/nestjs@3.14.0
|
|
127
|
-
|
|
128
|
-
## 3.13.5
|
|
129
|
-
|
|
130
|
-
### Patch Changes
|
|
131
|
-
|
|
132
|
-
- Updated dependencies []:
|
|
133
|
-
- @graphql-yoga/nestjs@3.13.5
|
|
134
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.13.5
|
|
135
|
-
|
|
136
|
-
## 3.13.4
|
|
137
|
-
|
|
138
|
-
### Patch Changes
|
|
139
|
-
|
|
140
|
-
- Updated dependencies
|
|
141
|
-
[[`000c33d`](https://github.com/graphql-hive/graphql-yoga/commit/000c33dc043454f4b73d15f03c3e688cfb9d0901)]:
|
|
142
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.13.4
|
|
143
|
-
- @graphql-yoga/nestjs@3.13.4
|
|
144
|
-
|
|
145
|
-
## 3.13.3
|
|
146
|
-
|
|
147
|
-
### Patch Changes
|
|
148
|
-
|
|
149
|
-
- Updated dependencies
|
|
150
|
-
[[`3a7ef74`](https://github.com/graphql-hive/graphql-yoga/commit/3a7ef74eae1f1926213f671b20521bed14496873)]:
|
|
151
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.13.3
|
|
152
|
-
- @graphql-yoga/nestjs@3.13.3
|
|
153
|
-
|
|
154
|
-
## 3.13.2
|
|
155
|
-
|
|
156
|
-
### Patch Changes
|
|
157
|
-
|
|
158
|
-
- Updated dependencies []:
|
|
159
|
-
- @graphql-yoga/nestjs@3.13.2
|
|
160
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.13.2
|
|
161
|
-
|
|
162
|
-
## 3.13.1
|
|
163
|
-
|
|
164
|
-
### Patch Changes
|
|
165
|
-
|
|
166
|
-
- [#3865](https://github.com/dotansimha/graphql-yoga/pull/3865)
|
|
167
|
-
[`dee7995`](https://github.com/dotansimha/graphql-yoga/commit/dee79952919d001bdd4f5b3d802be1bc62051565)
|
|
168
|
-
Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
|
|
169
|
-
- Updated dependency
|
|
170
|
-
[`@envelop/apollo-federation@^6.1.3` ↗︎](https://www.npmjs.com/package/@envelop/apollo-federation/v/6.1.3)
|
|
171
|
-
(from `^6.1.1`, in `dependencies`)
|
|
172
|
-
- Updated dependency
|
|
173
|
-
[`@envelop/core@^5.2.3` ↗︎](https://www.npmjs.com/package/@envelop/core/v/5.2.3) (from
|
|
174
|
-
`^5.2.1`, in `dependencies`)
|
|
175
|
-
- Updated dependencies
|
|
176
|
-
[[`dee7995`](https://github.com/dotansimha/graphql-yoga/commit/dee79952919d001bdd4f5b3d802be1bc62051565)]:
|
|
177
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.13.1
|
|
178
|
-
- @graphql-yoga/nestjs@3.13.1
|
|
179
|
-
|
|
180
|
-
## 3.13.0
|
|
181
|
-
|
|
182
|
-
### Patch Changes
|
|
183
|
-
|
|
184
|
-
- [#3793](https://github.com/dotansimha/graphql-yoga/pull/3793)
|
|
185
|
-
[`63b78d5`](https://github.com/dotansimha/graphql-yoga/commit/63b78d5a7f6f7fd1d5939e92ede2574fda9d08dd)
|
|
186
|
-
Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
|
|
187
|
-
- Updated dependency
|
|
188
|
-
[`@envelop/apollo-federation@^6.1.1` ↗︎](https://www.npmjs.com/package/@envelop/apollo-federation/v/6.1.1)
|
|
189
|
-
(from `^6.0.0`, in `dependencies`)
|
|
190
|
-
- Updated dependency
|
|
191
|
-
[`@envelop/core@^5.2.1` ↗︎](https://www.npmjs.com/package/@envelop/core/v/5.2.1) (from
|
|
192
|
-
`^5.0.0`, in `dependencies`)
|
|
193
|
-
- Updated dependencies
|
|
194
|
-
[[`63b78d5`](https://github.com/dotansimha/graphql-yoga/commit/63b78d5a7f6f7fd1d5939e92ede2574fda9d08dd)]:
|
|
195
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.13.0
|
|
196
|
-
- @graphql-yoga/nestjs@3.13.0
|
|
197
|
-
|
|
198
|
-
## 3.12.3
|
|
199
|
-
|
|
200
|
-
### Patch Changes
|
|
201
|
-
|
|
202
|
-
- Updated dependencies []:
|
|
203
|
-
- @graphql-yoga/nestjs@3.12.2
|
|
204
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.12.3
|
|
205
|
-
|
|
206
|
-
## 3.12.2
|
|
207
|
-
|
|
208
|
-
### Patch Changes
|
|
209
|
-
|
|
210
|
-
- Updated dependencies []:
|
|
211
|
-
- @graphql-yoga/nestjs@3.12.1
|
|
212
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.12.2
|
|
213
|
-
|
|
214
|
-
## 3.12.1
|
|
215
|
-
|
|
216
|
-
### Patch Changes
|
|
217
|
-
|
|
218
|
-
- Updated dependencies
|
|
219
|
-
[[`1d438ce`](https://github.com/dotansimha/graphql-yoga/commit/1d438ce455b6fbee78dc4e9d33c72a4e74384a44)]:
|
|
220
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.12.1
|
|
221
|
-
|
|
222
|
-
## 3.12.0
|
|
223
|
-
|
|
224
|
-
### Patch Changes
|
|
225
|
-
|
|
226
|
-
- [#3780](https://github.com/dotansimha/graphql-yoga/pull/3780)
|
|
227
|
-
[`ea63828`](https://github.com/dotansimha/graphql-yoga/commit/ea6382820673b63b80885d5a317900a677bbc29a)
|
|
228
|
-
Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
|
|
229
|
-
- Updated dependency
|
|
230
|
-
[`@envelop/apollo-federation@^6.0.0` ↗︎](https://www.npmjs.com/package/@envelop/apollo-federation/v/6.0.0)
|
|
231
|
-
(from `^5.0.0`, in `dependencies`)
|
|
232
|
-
- Updated dependencies
|
|
233
|
-
[[`ea63828`](https://github.com/dotansimha/graphql-yoga/commit/ea6382820673b63b80885d5a317900a677bbc29a)]:
|
|
234
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.12.0
|
|
235
|
-
- @graphql-yoga/nestjs@3.12.0
|
|
236
|
-
|
|
237
|
-
## 3.11.0
|
|
238
|
-
|
|
239
|
-
### Patch Changes
|
|
240
|
-
|
|
241
|
-
- Updated dependencies []:
|
|
242
|
-
- @graphql-yoga/nestjs@3.11.0
|
|
243
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.11.0
|
|
244
|
-
|
|
245
|
-
## 3.10.13
|
|
246
|
-
|
|
247
|
-
### Patch Changes
|
|
248
|
-
|
|
249
|
-
- Updated dependencies
|
|
250
|
-
[[`31b7754`](https://github.com/dotansimha/graphql-yoga/commit/31b7754fd93d74682576b4f4765385805e78cf17)]:
|
|
251
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.10.12
|
|
252
|
-
|
|
253
|
-
## 3.10.12
|
|
254
|
-
|
|
255
|
-
### Patch Changes
|
|
256
|
-
|
|
257
|
-
- Updated dependencies []:
|
|
258
|
-
- @graphql-yoga/nestjs@3.10.12
|
|
259
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.10.11
|
|
260
|
-
|
|
261
|
-
## 3.10.11
|
|
262
|
-
|
|
263
|
-
### Patch Changes
|
|
264
|
-
|
|
265
|
-
- [#3676](https://github.com/dotansimha/graphql-yoga/pull/3676)
|
|
266
|
-
[`c9b167b`](https://github.com/dotansimha/graphql-yoga/commit/c9b167bc8fdf8478649f6507426b336836098c11)
|
|
267
|
-
Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
|
|
268
|
-
- Updated dependency
|
|
269
|
-
[`@nestjs/graphql@^13.0.0` ↗︎](https://www.npmjs.com/package/@nestjs/graphql/v/13.0.0) (from
|
|
270
|
-
`^12.0.0`, in `peerDependencies`)
|
|
271
|
-
- Updated dependencies
|
|
272
|
-
[[`c9b167b`](https://github.com/dotansimha/graphql-yoga/commit/c9b167bc8fdf8478649f6507426b336836098c11)]:
|
|
273
|
-
- @graphql-yoga/nestjs@3.10.11
|
|
274
|
-
|
|
275
|
-
## 3.10.10
|
|
276
|
-
|
|
277
|
-
### Patch Changes
|
|
278
|
-
|
|
279
|
-
- [#3666](https://github.com/dotansimha/graphql-yoga/pull/3666)
|
|
280
|
-
[`356d5f2`](https://github.com/dotansimha/graphql-yoga/commit/356d5f2be30b6a73fc1a4d7efab57a4213728684)
|
|
281
|
-
Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
|
|
282
|
-
- Updated dependency
|
|
283
|
-
[`@nestjs/common@^11.0.0` ↗︎](https://www.npmjs.com/package/@nestjs/common/v/11.0.0) (from
|
|
284
|
-
`^10.0.0`, in `peerDependencies`)
|
|
285
|
-
- Updated dependency
|
|
286
|
-
[`@nestjs/core@^11.0.0` ↗︎](https://www.npmjs.com/package/@nestjs/core/v/11.0.0) (from
|
|
287
|
-
`^10.0.0`, in `peerDependencies`)
|
|
288
|
-
- Updated dependencies
|
|
289
|
-
[[`356d5f2`](https://github.com/dotansimha/graphql-yoga/commit/356d5f2be30b6a73fc1a4d7efab57a4213728684),
|
|
290
|
-
[`d4cbae1`](https://github.com/dotansimha/graphql-yoga/commit/d4cbae12348a39a2f64d7048dc582ebbaac93a5b)]:
|
|
291
|
-
- @graphql-yoga/nestjs@3.10.10
|
|
292
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.10.10
|
|
293
|
-
|
|
294
|
-
## 3.10.9
|
|
295
|
-
|
|
296
|
-
### Patch Changes
|
|
297
|
-
|
|
298
|
-
- Updated dependencies []:
|
|
299
|
-
- @graphql-yoga/nestjs@3.10.9
|
|
300
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.10.9
|
|
301
|
-
|
|
302
|
-
## 3.10.8
|
|
303
|
-
|
|
304
|
-
### Patch Changes
|
|
305
|
-
|
|
306
|
-
- Updated dependencies []:
|
|
307
|
-
- @graphql-yoga/nestjs@3.10.8
|
|
308
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.10.8
|
|
309
|
-
|
|
310
|
-
## 3.10.7
|
|
311
|
-
|
|
312
|
-
### Patch Changes
|
|
313
|
-
|
|
314
|
-
- Updated dependencies []:
|
|
315
|
-
- @graphql-yoga/nestjs@3.10.7
|
|
316
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.10.7
|
|
317
|
-
|
|
318
|
-
## 3.10.6
|
|
319
|
-
|
|
320
|
-
### Patch Changes
|
|
321
|
-
|
|
322
|
-
- Updated dependencies []:
|
|
323
|
-
- @graphql-yoga/nestjs@3.10.6
|
|
324
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.10.6
|
|
325
|
-
|
|
326
|
-
## 3.10.5
|
|
327
|
-
|
|
328
|
-
### Patch Changes
|
|
329
|
-
|
|
330
|
-
- Updated dependencies []:
|
|
331
|
-
- @graphql-yoga/nestjs@3.10.5
|
|
332
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.10.5
|
|
333
|
-
|
|
334
|
-
## 3.10.4
|
|
335
|
-
|
|
336
|
-
### Patch Changes
|
|
337
|
-
|
|
338
|
-
- Updated dependencies
|
|
339
|
-
[[`944ecd5`](https://github.com/dotansimha/graphql-yoga/commit/944ecd55abb1b77e88950eb3396919939915feb7)]:
|
|
340
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.10.4
|
|
341
|
-
- @graphql-yoga/nestjs@3.10.4
|
|
342
|
-
|
|
343
|
-
## 3.10.3
|
|
344
|
-
|
|
345
|
-
### Patch Changes
|
|
346
|
-
|
|
347
|
-
- Updated dependencies []:
|
|
348
|
-
- @graphql-yoga/nestjs@3.10.3
|
|
349
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.10.3
|
|
350
|
-
|
|
351
|
-
## 3.10.2
|
|
352
|
-
|
|
353
|
-
### Patch Changes
|
|
354
|
-
|
|
355
|
-
- Updated dependencies []:
|
|
356
|
-
- @graphql-yoga/nestjs@3.10.2
|
|
357
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.10.2
|
|
358
|
-
|
|
359
|
-
## 3.10.1
|
|
360
|
-
|
|
361
|
-
### Patch Changes
|
|
362
|
-
|
|
363
|
-
- Updated dependencies
|
|
364
|
-
[[`20cd9b6`](https://github.com/dotansimha/graphql-yoga/commit/20cd9b6cd58b507580e3d39621eb3dbc2ca4e781)]:
|
|
365
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.10.1
|
|
366
|
-
- @graphql-yoga/nestjs@3.10.1
|
|
367
|
-
|
|
368
|
-
## 3.10.0
|
|
369
|
-
|
|
370
|
-
### Patch Changes
|
|
371
|
-
|
|
372
|
-
- Updated dependencies
|
|
373
|
-
[[`6e2ab86`](https://github.com/dotansimha/graphql-yoga/commit/6e2ab86060b4e88f8ab80b8b8c7c844c866bb5a0)]:
|
|
374
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.10.0
|
|
375
|
-
- @graphql-yoga/nestjs@3.10.0
|
|
376
|
-
|
|
377
|
-
## 3.9.0
|
|
378
|
-
|
|
379
|
-
### Patch Changes
|
|
380
|
-
|
|
381
|
-
- Updated dependencies []:
|
|
382
|
-
- @graphql-yoga/nestjs@3.9.0
|
|
383
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.9.0
|
|
384
|
-
|
|
385
|
-
## 3.8.0
|
|
386
|
-
|
|
387
|
-
### Patch Changes
|
|
388
|
-
|
|
389
|
-
- Updated dependencies
|
|
390
|
-
[[`6bb19ed`](https://github.com/dotansimha/graphql-yoga/commit/6bb19edf5b103d6d9b6088e2e22cfa71a85f26f7)]:
|
|
391
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.8.0
|
|
392
|
-
- @graphql-yoga/nestjs@3.8.0
|
|
393
|
-
|
|
394
|
-
## 3.7.0
|
|
395
|
-
|
|
396
|
-
### Patch Changes
|
|
397
|
-
|
|
398
|
-
- Updated dependencies
|
|
399
|
-
[[`5dae4ab`](https://github.com/dotansimha/graphql-yoga/commit/5dae4abeb6a4aa82f396a19d31d0155fe10bc752),
|
|
400
|
-
[`5dae4ab`](https://github.com/dotansimha/graphql-yoga/commit/5dae4abeb6a4aa82f396a19d31d0155fe10bc752)]:
|
|
401
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.7.0
|
|
402
|
-
- @graphql-yoga/nestjs@3.7.0
|
|
403
|
-
|
|
404
|
-
## 3.6.3
|
|
405
|
-
|
|
406
|
-
### Patch Changes
|
|
407
|
-
|
|
408
|
-
- Updated dependencies []:
|
|
409
|
-
- @graphql-yoga/nestjs@3.6.3
|
|
410
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.6.3
|
|
411
|
-
|
|
412
|
-
## 3.6.2
|
|
413
|
-
|
|
414
|
-
### Patch Changes
|
|
415
|
-
|
|
416
|
-
- Updated dependencies []:
|
|
417
|
-
- @graphql-yoga/nestjs@3.6.2
|
|
418
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.6.2
|
|
419
|
-
|
|
420
|
-
## 3.6.1
|
|
421
|
-
|
|
422
|
-
### Patch Changes
|
|
423
|
-
|
|
424
|
-
- Updated dependencies []:
|
|
425
|
-
- @graphql-yoga/nestjs@3.6.1
|
|
426
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.6.1
|
|
427
|
-
|
|
428
|
-
## 3.6.0
|
|
429
|
-
|
|
430
|
-
### Patch Changes
|
|
431
|
-
|
|
432
|
-
- Updated dependencies []:
|
|
433
|
-
- @graphql-yoga/nestjs@3.6.0
|
|
434
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.6.0
|
|
435
|
-
|
|
436
|
-
## 3.5.0
|
|
437
|
-
|
|
438
|
-
### Patch Changes
|
|
439
|
-
|
|
440
|
-
- Updated dependencies []:
|
|
441
|
-
- @graphql-yoga/nestjs@3.5.0
|
|
442
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.5.0
|
|
443
|
-
|
|
444
|
-
## 3.4.0
|
|
445
|
-
|
|
446
|
-
### Patch Changes
|
|
447
|
-
|
|
448
|
-
- Updated dependencies
|
|
449
|
-
[[`fdd902c`](https://github.com/dotansimha/graphql-yoga/commit/fdd902c2a713c6bd951e1b1e6570164b6ff2d546),
|
|
450
|
-
[`fdd902c`](https://github.com/dotansimha/graphql-yoga/commit/fdd902c2a713c6bd951e1b1e6570164b6ff2d546)]:
|
|
451
|
-
- @graphql-yoga/nestjs@3.4.0
|
|
452
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.4.0
|
|
453
|
-
|
|
454
|
-
## 3.3.1
|
|
455
|
-
|
|
456
|
-
### Patch Changes
|
|
457
|
-
|
|
458
|
-
- Updated dependencies []:
|
|
459
|
-
- @graphql-yoga/nestjs@3.3.1
|
|
460
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.3.1
|
|
461
|
-
|
|
462
|
-
## 3.3.0
|
|
463
|
-
|
|
464
|
-
### Patch Changes
|
|
465
|
-
|
|
466
|
-
- Updated dependencies
|
|
467
|
-
[[`f775b341`](https://github.com/dotansimha/graphql-yoga/commit/f775b341729145cee68747ab966aa9f4a9ea0389)]:
|
|
468
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.3.0
|
|
469
|
-
- @graphql-yoga/nestjs@3.3.0
|
|
470
|
-
|
|
471
|
-
## 3.2.0
|
|
472
|
-
|
|
473
|
-
### Patch Changes
|
|
474
|
-
|
|
475
|
-
- Updated dependencies []:
|
|
476
|
-
- @graphql-yoga/nestjs@3.2.0
|
|
477
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.2.0
|
|
478
|
-
|
|
479
|
-
## 3.1.1
|
|
480
|
-
|
|
481
|
-
### Patch Changes
|
|
482
|
-
|
|
483
|
-
- Updated dependencies []:
|
|
484
|
-
- @graphql-yoga/nestjs@3.1.1
|
|
485
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.1.1
|
|
486
|
-
|
|
487
|
-
## 3.1.0
|
|
488
|
-
|
|
489
|
-
### Patch Changes
|
|
490
|
-
|
|
491
|
-
- Updated dependencies
|
|
492
|
-
[[`b1f0e3a2`](https://github.com/dotansimha/graphql-yoga/commit/b1f0e3a2986956c6791a251df908e3f8b50ec966)]:
|
|
493
|
-
- @graphql-yoga/nestjs@3.1.0
|
|
494
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.1.0
|
|
495
|
-
|
|
496
|
-
## 3.0.2
|
|
497
|
-
|
|
498
|
-
### Patch Changes
|
|
499
|
-
|
|
500
|
-
- Updated dependencies []:
|
|
501
|
-
- @graphql-yoga/nestjs@3.0.2
|
|
502
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.0.2
|
|
503
|
-
|
|
504
|
-
## 3.0.1
|
|
505
|
-
|
|
506
|
-
### Patch Changes
|
|
507
|
-
|
|
508
|
-
- Updated dependencies []:
|
|
509
|
-
- @graphql-yoga/nestjs@3.0.1
|
|
510
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.0.1
|
|
511
|
-
|
|
512
|
-
## 3.0.0
|
|
513
|
-
|
|
514
|
-
### Major Changes
|
|
515
|
-
|
|
516
|
-
- [#3070](https://github.com/dotansimha/graphql-yoga/pull/3070)
|
|
517
|
-
[`5b615478`](https://github.com/dotansimha/graphql-yoga/commit/5b6154783957874281bdf180575cdf57fadb75bf)
|
|
518
|
-
Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
|
|
519
|
-
- Updated dependency
|
|
520
|
-
[`@envelop/apollo-federation@^5.0.0` ↗︎](https://www.npmjs.com/package/@envelop/apollo-federation/v/5.0.0)
|
|
521
|
-
(from `^4.0.0`, in `dependencies`)
|
|
522
|
-
- Updated dependency
|
|
523
|
-
[`@envelop/core@^5.0.0` ↗︎](https://www.npmjs.com/package/@envelop/core/v/5.0.0) (from
|
|
524
|
-
`^4.0.0`, in `dependencies`)
|
|
525
|
-
|
|
526
|
-
- [#3063](https://github.com/dotansimha/graphql-yoga/pull/3063)
|
|
527
|
-
[`01430e03`](https://github.com/dotansimha/graphql-yoga/commit/01430e03288f072a9cb09b0b898316b1f5b58a5f)
|
|
528
|
-
Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - **Breaking Change:** Drop support of
|
|
529
|
-
Node.js 16
|
|
530
|
-
|
|
531
|
-
### Patch Changes
|
|
532
|
-
|
|
533
|
-
- Updated dependencies
|
|
534
|
-
[[`5b615478`](https://github.com/dotansimha/graphql-yoga/commit/5b6154783957874281bdf180575cdf57fadb75bf),
|
|
535
|
-
[`01430e03`](https://github.com/dotansimha/graphql-yoga/commit/01430e03288f072a9cb09b0b898316b1f5b58a5f)]:
|
|
536
|
-
- @graphql-yoga/plugin-apollo-inline-trace@3.0.0
|
|
537
|
-
- @graphql-yoga/nestjs@3.0.0
|
|
538
|
-
|
|
539
|
-
## 2.2.1
|
|
540
|
-
|
|
541
|
-
### Patch Changes
|
|
542
|
-
|
|
543
|
-
- Updated dependencies []:
|
|
544
|
-
- @graphql-yoga/nestjs@2.1.1
|
|
545
|
-
- @graphql-yoga/plugin-apollo-inline-trace@2.0.5
|
|
546
|
-
|
|
547
|
-
## 2.2.0
|
|
548
|
-
|
|
549
|
-
### Patch Changes
|
|
550
|
-
|
|
551
|
-
- Updated dependencies
|
|
552
|
-
[[`bb583a11`](https://github.com/dotansimha/graphql-yoga/commit/bb583a112a99ea99e4af1af9d6d5e31adecfed3b)]:
|
|
553
|
-
- @graphql-yoga/nestjs@2.1.0
|
|
554
|
-
|
|
555
|
-
## 2.1.0
|
|
556
|
-
|
|
557
|
-
### Minor Changes
|
|
558
|
-
|
|
559
|
-
- [#2966](https://github.com/dotansimha/graphql-yoga/pull/2966)
|
|
560
|
-
[`5740159d`](https://github.com/dotansimha/graphql-yoga/commit/5740159d6f599affc04cb58ea40f9fcbe2efd32f)
|
|
561
|
-
Thanks [@vasily-polonsky](https://github.com/vasily-polonsky)! - support subscriptions for nestjs
|
|
562
|
-
federation
|
|
563
|
-
|
|
564
|
-
## 2.0.4
|
|
565
|
-
|
|
566
|
-
### Patch Changes
|
|
567
|
-
|
|
568
|
-
- Updated dependencies []:
|
|
569
|
-
- @graphql-yoga/nestjs@2.0.4
|
|
570
|
-
- @graphql-yoga/plugin-apollo-inline-trace@2.0.4
|
|
571
|
-
|
|
572
|
-
## 2.0.3
|
|
573
|
-
|
|
574
|
-
### Patch Changes
|
|
575
|
-
|
|
576
|
-
- Updated dependencies
|
|
577
|
-
[[`5efb8250`](https://github.com/dotansimha/graphql-yoga/commit/5efb82502da245f2fe730cc18f4af283d31a835c)]:
|
|
578
|
-
- @graphql-yoga/plugin-apollo-inline-trace@2.0.3
|
|
579
|
-
- @graphql-yoga/nestjs@2.0.3
|
|
580
|
-
|
|
581
|
-
## 2.0.2
|
|
582
|
-
|
|
583
|
-
### Patch Changes
|
|
584
|
-
|
|
585
|
-
- [#2864](https://github.com/dotansimha/graphql-yoga/pull/2864)
|
|
586
|
-
[`9feb88f6`](https://github.com/dotansimha/graphql-yoga/commit/9feb88f6804ce05c28deb4c442fc21c0f23b8db8)
|
|
587
|
-
Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
|
|
588
|
-
- Updated dependency
|
|
589
|
-
[`@nestjs/common@^10.0.0` ↗︎](https://www.npmjs.com/package/@nestjs/common/v/10.0.0) (from
|
|
590
|
-
`^8.4.7 || ^9.0.0`, in `peerDependencies`)
|
|
591
|
-
- Updated dependency
|
|
592
|
-
[`@nestjs/core@^10.0.0` ↗︎](https://www.npmjs.com/package/@nestjs/core/v/10.0.0) (from
|
|
593
|
-
`^8.4.7 || ^9.0.0`, in `peerDependencies`)
|
|
594
|
-
|
|
595
|
-
- [#2871](https://github.com/dotansimha/graphql-yoga/pull/2871)
|
|
596
|
-
[`93c96eed`](https://github.com/dotansimha/graphql-yoga/commit/93c96eedd43b63314a05181feea45bdedecd31b4)
|
|
597
|
-
Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
|
|
598
|
-
- Updated dependency
|
|
599
|
-
[`@nestjs/graphql@^12.0.0` ↗︎](https://www.npmjs.com/package/@nestjs/graphql/v/12.0.0) (from
|
|
600
|
-
`^11.0.0`, in `peerDependencies`)
|
|
601
|
-
- Updated dependencies
|
|
602
|
-
[[`9feb88f6`](https://github.com/dotansimha/graphql-yoga/commit/9feb88f6804ce05c28deb4c442fc21c0f23b8db8),
|
|
603
|
-
[`93c96eed`](https://github.com/dotansimha/graphql-yoga/commit/93c96eedd43b63314a05181feea45bdedecd31b4)]:
|
|
604
|
-
- @graphql-yoga/nestjs@2.0.2
|
|
605
|
-
- @graphql-yoga/plugin-apollo-inline-trace@2.0.2
|
|
606
|
-
|
|
607
|
-
## 2.0.1
|
|
608
|
-
|
|
609
|
-
### Patch Changes
|
|
610
|
-
|
|
611
|
-
- Updated dependencies []:
|
|
612
|
-
- @graphql-yoga/nestjs@2.0.1
|
|
613
|
-
- @graphql-yoga/plugin-apollo-inline-trace@2.0.1
|
|
614
|
-
|
|
615
|
-
## 2.0.0
|
|
616
|
-
|
|
617
|
-
### Major Changes
|
|
618
|
-
|
|
619
|
-
- [#2767](https://github.com/dotansimha/graphql-yoga/pull/2767)
|
|
620
|
-
[`4228c1d5`](https://github.com/dotansimha/graphql-yoga/commit/4228c1d54ed785fac1fb9669d861ed46659872ca)
|
|
621
|
-
Thanks [@renovate](https://github.com/apps/renovate)! - Drop support for Node.js 14. Require
|
|
622
|
-
Node.js `>=16`.
|
|
623
|
-
|
|
624
|
-
### Patch Changes
|
|
625
|
-
|
|
626
|
-
- Updated dependencies
|
|
627
|
-
[[`4228c1d5`](https://github.com/dotansimha/graphql-yoga/commit/4228c1d54ed785fac1fb9669d861ed46659872ca)]:
|
|
628
|
-
- @graphql-yoga/plugin-apollo-inline-trace@2.0.0
|
|
629
|
-
- @graphql-yoga/nestjs@2.0.0
|
|
630
|
-
|
|
631
|
-
## 1.1.1
|
|
632
|
-
|
|
633
|
-
### Patch Changes
|
|
634
|
-
|
|
635
|
-
- Updated dependencies
|
|
636
|
-
[[`c50ea51c`](https://github.com/dotansimha/graphql-yoga/commit/c50ea51c992a6a480799655225727081585f0010)]:
|
|
637
|
-
- @graphql-yoga/plugin-apollo-inline-trace@1.9.1
|
|
638
|
-
- @graphql-yoga/nestjs@1.1.1
|
|
639
|
-
|
|
640
|
-
## 1.1.0
|
|
641
|
-
|
|
642
|
-
### Patch Changes
|
|
643
|
-
|
|
644
|
-
- Updated dependencies []:
|
|
645
|
-
- @graphql-yoga/nestjs@1.1.0
|
|
646
|
-
- @graphql-yoga/plugin-apollo-inline-trace@1.9.0
|
|
647
|
-
|
|
648
|
-
## 1.0.1
|
|
649
|
-
|
|
650
|
-
### Patch Changes
|
|
651
|
-
|
|
652
|
-
- Updated dependencies []:
|
|
653
|
-
- @graphql-yoga/nestjs@1.0.1
|
|
654
|
-
- @graphql-yoga/plugin-apollo-inline-trace@1.8.1
|
|
655
|
-
|
|
656
|
-
## 1.0.0
|
|
657
|
-
|
|
658
|
-
### Major Changes
|
|
659
|
-
|
|
660
|
-
- [#2525](https://github.com/dotansimha/graphql-yoga/pull/2525)
|
|
661
|
-
[`41f4a545`](https://github.com/dotansimha/graphql-yoga/commit/41f4a545637e3ab16cf8119c4950ea7fe5ab3eb6)
|
|
662
|
-
Thanks [@enisdenjo](https://github.com/enisdenjo)! - GraphQL Yoga driver with Apollo Federation
|
|
663
|
-
for NestJS GraphQL
|
|
664
|
-
|
|
665
|
-
### Patch Changes
|
|
666
|
-
|
|
667
|
-
- Updated dependencies
|
|
668
|
-
[[`41f4a545`](https://github.com/dotansimha/graphql-yoga/commit/41f4a545637e3ab16cf8119c4950ea7fe5ab3eb6)]:
|
|
669
|
-
- @graphql-yoga/nestjs@1.0.0
|
|
670
|
-
- @graphql-yoga/plugin-apollo-inline-trace@1.8.0
|
package/src/index.ts
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { GraphQLSchema } from 'graphql';
|
|
2
|
-
import { ApolloGateway, GatewayConfig } from '@apollo/gateway';
|
|
3
|
-
import { printSubgraphSchema } from '@apollo/subgraph';
|
|
4
|
-
import { useApolloFederation } from '@envelop/apollo-federation';
|
|
5
|
-
import {
|
|
6
|
-
AbstractYogaDriver,
|
|
7
|
-
YogaDriver,
|
|
8
|
-
YogaDriverConfig,
|
|
9
|
-
YogaDriverPlatform,
|
|
10
|
-
} from '@graphql-yoga/nestjs';
|
|
11
|
-
import { useApolloInlineTrace } from '@graphql-yoga/plugin-apollo-inline-trace';
|
|
12
|
-
import { Injectable, Type } from '@nestjs/common';
|
|
13
|
-
import {
|
|
14
|
-
GqlSubscriptionService,
|
|
15
|
-
GraphQLFederationFactory,
|
|
16
|
-
SubscriptionConfig,
|
|
17
|
-
} from '@nestjs/graphql';
|
|
18
|
-
|
|
19
|
-
export type YogaFederationDriverConfig<Platform extends YogaDriverPlatform = 'express'> =
|
|
20
|
-
YogaDriverConfig<Platform>;
|
|
21
|
-
|
|
22
|
-
@Injectable()
|
|
23
|
-
export class YogaFederationDriver<
|
|
24
|
-
Platform extends YogaDriverPlatform = 'express',
|
|
25
|
-
> extends AbstractYogaDriver<Platform> {
|
|
26
|
-
private subscriptionService?: GqlSubscriptionService;
|
|
27
|
-
|
|
28
|
-
constructor(private readonly graphqlFederationFactory: GraphQLFederationFactory) {
|
|
29
|
-
super();
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
override async generateSchema(
|
|
33
|
-
options: YogaFederationDriverConfig<Platform>,
|
|
34
|
-
): Promise<GraphQLSchema> {
|
|
35
|
-
return await this.graphqlFederationFactory.generateSchema(options);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
public override async start(options: YogaFederationDriverConfig<Platform>) {
|
|
39
|
-
if (options.definitions?.path) {
|
|
40
|
-
if (!options.schema) {
|
|
41
|
-
throw new Error('Schema is required when providing definitions path');
|
|
42
|
-
}
|
|
43
|
-
await this.graphQlFactory.generateDefinitions(printSubgraphSchema(options.schema), options);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
await super.start({
|
|
47
|
-
...options,
|
|
48
|
-
plugins: [...(options?.plugins || []), useApolloInlineTrace()],
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
if (options.subscriptions && options.schema) {
|
|
52
|
-
const config: SubscriptionConfig =
|
|
53
|
-
options.subscriptions === true
|
|
54
|
-
? {
|
|
55
|
-
'graphql-ws': true,
|
|
56
|
-
}
|
|
57
|
-
: options.subscriptions;
|
|
58
|
-
|
|
59
|
-
this.subscriptionService = new GqlSubscriptionService(
|
|
60
|
-
{
|
|
61
|
-
schema: options.schema,
|
|
62
|
-
path: options.path,
|
|
63
|
-
context: options.context,
|
|
64
|
-
...config,
|
|
65
|
-
},
|
|
66
|
-
this.httpAdapterHost.httpAdapter?.getHttpServer(),
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
public override async stop(): Promise<void> {
|
|
72
|
-
await this.subscriptionService?.stop();
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export interface YogaGatewayDriverConfig<Platform extends YogaDriverPlatform = 'express'> {
|
|
77
|
-
driver?: Type<YogaDriver<Platform>>;
|
|
78
|
-
gateway?: GatewayConfig;
|
|
79
|
-
server?: Omit<
|
|
80
|
-
YogaDriverConfig<Platform>,
|
|
81
|
-
| 'endpoint'
|
|
82
|
-
| 'schema'
|
|
83
|
-
| 'typeDefs'
|
|
84
|
-
| 'definitions'
|
|
85
|
-
| 'resolvers'
|
|
86
|
-
| 'resolverValidationOptions'
|
|
87
|
-
| 'directiveResolvers'
|
|
88
|
-
| 'autoSchemaFile'
|
|
89
|
-
| 'transformSchema'
|
|
90
|
-
| 'subscriptions'
|
|
91
|
-
| 'buildSchemaOptions'
|
|
92
|
-
| 'fieldResolverEnhancers'
|
|
93
|
-
| 'driver'
|
|
94
|
-
>;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
@Injectable()
|
|
98
|
-
export class YogaGatewayDriver<
|
|
99
|
-
Platform extends YogaDriverPlatform = 'express',
|
|
100
|
-
> extends AbstractYogaDriver<Platform> {
|
|
101
|
-
public override async generateSchema(
|
|
102
|
-
_options: YogaGatewayDriverConfig<Platform>,
|
|
103
|
-
): Promise<GraphQLSchema> {
|
|
104
|
-
return new GraphQLSchema({});
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
public override async start(options: YogaGatewayDriverConfig<Platform>) {
|
|
108
|
-
const { server: serverOpts = {}, gateway: gatewayOpts = {} } = options;
|
|
109
|
-
const gateway: ApolloGateway = new ApolloGateway(gatewayOpts);
|
|
110
|
-
|
|
111
|
-
await gateway.load();
|
|
112
|
-
|
|
113
|
-
await super.start({
|
|
114
|
-
...serverOpts,
|
|
115
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
116
|
-
// @ts-ignore - There is a type mismatch here
|
|
117
|
-
plugins: [...(serverOpts.plugins || []), useApolloFederation({ gateway })],
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
public override async mergeDefaultOptions(
|
|
122
|
-
options: Record<string, unknown>,
|
|
123
|
-
): Promise<Record<string, unknown>> {
|
|
124
|
-
return {
|
|
125
|
-
...options,
|
|
126
|
-
server: await super.mergeDefaultOptions(options?.['server'] ?? {}),
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
}
|