@omnigraph/protobuf 0.0.0-stage → 0.3.2

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/CHANGELOG.md ADDED
@@ -0,0 +1,716 @@
1
+ # @omnigraph/grpc
2
+
3
+ ## 0.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#9682](https://github.com/ardatan/graphql-mesh/pull/9682)
8
+ [`4b92af0`](https://github.com/ardatan/graphql-mesh/commit/4b92af01c10d1d746dfb1623491282c169e03248)
9
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
10
+ - Updated dependency
11
+ [`@graphql-tools/utils@^12.0.4` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/12.0.4)
12
+ (from `^12.0.3`, in `dependencies`)
13
+ - Updated dependencies
14
+ [[`4b92af0`](https://github.com/ardatan/graphql-mesh/commit/4b92af01c10d1d746dfb1623491282c169e03248)]:
15
+ - @graphql-mesh/cross-helpers@0.4.18
16
+
17
+ ## 0.3.1
18
+
19
+ ### Patch Changes
20
+
21
+ - [#9672](https://github.com/ardatan/graphql-mesh/pull/9672)
22
+ [`8e55954`](https://github.com/ardatan/graphql-mesh/commit/8e559541eaa17d115fdd1bd18f94c009c07a0030)
23
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
24
+ - Updated dependency
25
+ [`@grpc/grpc-js@^1.14.5` ↗︎](https://www.npmjs.com/package/@grpc/grpc-js/v/1.14.5) (from
26
+ `^1.14.4`, in `dependencies`)
27
+
28
+ - [#9678](https://github.com/ardatan/graphql-mesh/pull/9678)
29
+ [`3bdb714`](https://github.com/ardatan/graphql-mesh/commit/3bdb7143f11aba6e2855d7c1cc479d8fe749798c)
30
+ Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
31
+ - Updated dependency
32
+ [`@graphql-tools/utils@^12.0.3` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/12.0.3)
33
+ (from `^11.2.2`, in `dependencies`)
34
+ - Updated dependencies
35
+ [[`3bdb714`](https://github.com/ardatan/graphql-mesh/commit/3bdb7143f11aba6e2855d7c1cc479d8fe749798c)]:
36
+ - @graphql-mesh/cross-helpers@0.4.17
37
+
38
+ ## 0.3.0
39
+
40
+ ### Minor Changes
41
+
42
+ - [#9650](https://github.com/ardatan/graphql-mesh/pull/9650)
43
+ [`c7f0f3f`](https://github.com/ardatan/graphql-mesh/commit/c7f0f3f264a2f50d2b949b1bff2c8af44b38465d)
44
+ Thanks [@ardatan](https://github.com/ardatan)! - gRPC: pass `channelOptions` through to the gRPC
45
+ client
46
+
47
+ Use this for message size limits, keepalive, and other
48
+ [channel args](https://grpc.github.io/grpc/core/group__grpc__arg__keys.html). Options are stored
49
+ as entries so dotted keys like `grpc.max_receive_message_length` stay GraphQL-safe in the composed
50
+ schema.
51
+
52
+ ```ts
53
+ import { defineConfig } from '@graphql-mesh/compose-cli'
54
+ import loadGrpcSubgraph from '@omnigraph/grpc'
55
+
56
+ export const composeConfig = defineConfig({
57
+ subgraphs: [
58
+ {
59
+ sourceHandler: loadGrpcSubgraph('MyGrpcApi', {
60
+ endpoint: 'localhost:50051',
61
+ channelOptions: {
62
+ 'grpc.max_receive_message_length': 10_000_000,
63
+ 'grpc.keepalive_time_ms': 10_000,
64
+ 'grpc.keepalive_timeout_ms': 5_000,
65
+ 'grpc.keepalive_permit_without_calls': 1
66
+ }
67
+ })
68
+ }
69
+ ]
70
+ })
71
+ ```
72
+
73
+ Legacy Mesh:
74
+
75
+ ```yaml
76
+ sources:
77
+ - name: MyGrpcApi
78
+ handler:
79
+ grpc:
80
+ endpoint: localhost:50051
81
+ channelOptions:
82
+ grpc.max_receive_message_length: 10000000
83
+ grpc.keepalive_time_ms: 10000
84
+ ```
85
+
86
+ - [#9650](https://github.com/ardatan/graphql-mesh/pull/9650)
87
+ [`c7f0f3f`](https://github.com/ardatan/graphql-mesh/commit/c7f0f3f264a2f50d2b949b1bff2c8af44b38465d)
88
+ Thanks [@ardatan](https://github.com/ardatan)! - gRPC: add `reflectionMetadata` for
89
+ server-reflection requests
90
+
91
+ Send routing / auth metadata only when loading the schema via gRPC reflection (no `source`).
92
+ Runtime RPC metadata remains `metaData`; HTTP headers for a remote `.graphql` SDL remain
93
+ `schemaHeaders`.
94
+
95
+ ```ts
96
+ import { defineConfig } from '@graphql-mesh/compose-cli'
97
+ import loadGrpcSubgraph from '@omnigraph/grpc'
98
+
99
+ export const composeConfig = defineConfig({
100
+ subgraphs: [
101
+ {
102
+ sourceHandler: loadGrpcSubgraph('MyGrpcApi', {
103
+ endpoint: 'localhost:50051',
104
+ // No `source` → schema loaded via reflection
105
+ reflectionMetadata: {
106
+ 'grpc-service': 'proto.MyGrpcService',
107
+ authorization: 'Bearer {env.REFLECTION_TOKEN}'
108
+ }
109
+ })
110
+ }
111
+ ]
112
+ })
113
+ ```
114
+
115
+ Legacy Mesh:
116
+
117
+ ```yaml
118
+ sources:
119
+ - name: MyGrpcApi
120
+ handler:
121
+ grpc:
122
+ endpoint: localhost:50051
123
+ reflectionMetadata:
124
+ grpc-service: proto.MyGrpcService
125
+ authorization: 'Bearer {env.REFLECTION_TOKEN}'
126
+ ```
127
+
128
+ - [#9650](https://github.com/ardatan/graphql-mesh/pull/9650)
129
+ [`c7f0f3f`](https://github.com/ardatan/graphql-mesh/commit/c7f0f3f264a2f50d2b949b1bff2c8af44b38465d)
130
+ Thanks [@ardatan](https://github.com/ardatan)! - gRPC: apply `requestTimeout` as a real per-call
131
+ deadline
132
+
133
+ Previously `requestTimeout` was not enforced as a gRPC deadline, so a hung upstream could leave
134
+ the GraphQL request waiting indefinitely. It is now set on each call via `CallOptions.deadline`
135
+ (`Date.now() + requestTimeout`).
136
+
137
+ ```ts
138
+ import { defineConfig } from '@graphql-mesh/compose-cli'
139
+ import loadGrpcSubgraph from '@omnigraph/grpc'
140
+
141
+ export const composeConfig = defineConfig({
142
+ subgraphs: [
143
+ {
144
+ sourceHandler: loadGrpcSubgraph('MyGrpcApi', {
145
+ endpoint: 'localhost:50051',
146
+ // Fail the call if the server does not respond within 5s
147
+ requestTimeout: 5000
148
+ })
149
+ }
150
+ ]
151
+ })
152
+ ```
153
+
154
+ Legacy Mesh:
155
+
156
+ ```yaml
157
+ sources:
158
+ - name: MyGrpcApi
159
+ handler:
160
+ grpc:
161
+ endpoint: localhost:50051
162
+ requestTimeout: 5000
163
+ ```
164
+
165
+ ### Patch Changes
166
+
167
+ - [#9650](https://github.com/ardatan/graphql-mesh/pull/9650)
168
+ [`c7f0f3f`](https://github.com/ardatan/graphql-mesh/commit/c7f0f3f264a2f50d2b949b1bff2c8af44b38465d)
169
+ Thanks [@ardatan](https://github.com/ardatan)! - gRPC: treat missing or empty `source` as
170
+ reflection
171
+
172
+ Omitting `source`, setting it to `''`, or using `{ file: '' }` now correctly falls back to gRPC
173
+ server reflection instead of failing to load a proto/descriptor.
174
+
175
+ ```ts
176
+ import { defineConfig } from '@graphql-mesh/compose-cli'
177
+ import loadGrpcSubgraph from '@omnigraph/grpc'
178
+
179
+ export const composeConfig = defineConfig({
180
+ subgraphs: [
181
+ {
182
+ sourceHandler: loadGrpcSubgraph('MyGrpcApi', {
183
+ endpoint: 'localhost:50051'
184
+ // source omitted → reflection
185
+ })
186
+ }
187
+ ]
188
+ })
189
+ ```
190
+
191
+ Legacy Mesh (empty file path also reflects):
192
+
193
+ ```yaml
194
+ sources:
195
+ - name: MyGrpcApi
196
+ handler:
197
+ grpc:
198
+ endpoint: localhost:50051
199
+ # source omitted or empty → reflection
200
+ ```
201
+
202
+ ## 0.2.28
203
+
204
+ ### Patch Changes
205
+
206
+ - [#9611](https://github.com/ardatan/graphql-mesh/pull/9611)
207
+ [`cb846cb`](https://github.com/ardatan/graphql-mesh/commit/cb846cb178c7c5b8f8600ad9f23d12cb5092701c)
208
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
209
+ - Updated dependency
210
+ [`@graphql-mesh/transport-common@^1.0.20` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transport-common/v/1.0.20)
211
+ (from `^1.0.19`, in `dependencies`)
212
+
213
+ ## 0.2.27
214
+
215
+ ### Patch Changes
216
+
217
+ - [#9586](https://github.com/ardatan/graphql-mesh/pull/9586)
218
+ [`096ed33`](https://github.com/ardatan/graphql-mesh/commit/096ed338832c305aa88ccb2d154c1270d05e4b08)
219
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
220
+ - Updated dependency
221
+ [`@graphql-mesh/transport-common@^1.0.19` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transport-common/v/1.0.19)
222
+ (from `^1.0.17`, in `dependencies`)
223
+ - Updated dependency
224
+ [`@graphql-tools/utils@^11.2.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.2.2)
225
+ (from `^11.2.0`, in `dependencies`)
226
+ - Updated dependencies
227
+ [[`096ed33`](https://github.com/ardatan/graphql-mesh/commit/096ed338832c305aa88ccb2d154c1270d05e4b08)]:
228
+ - @graphql-mesh/cross-helpers@0.4.16
229
+
230
+ ## 0.2.26
231
+
232
+ ### Patch Changes
233
+
234
+ - [#9583](https://github.com/ardatan/graphql-mesh/pull/9583)
235
+ [`478676c`](https://github.com/ardatan/graphql-mesh/commit/478676c5f97caad1b11bec1a4a0270cf76736623)
236
+ Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
237
+ - Updated dependency [`protobufjs@^7.6.5` ↗︎](https://www.npmjs.com/package/protobufjs/v/7.6.5)
238
+ (from `^7.6.3`, in `dependencies`)
239
+
240
+ - [#9583](https://github.com/ardatan/graphql-mesh/pull/9583)
241
+ [`478676c`](https://github.com/ardatan/graphql-mesh/commit/478676c5f97caad1b11bec1a4a0270cf76736623)
242
+ Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
243
+ - Updated dependency [`protobufjs@^7.6.5` ↗︎](https://www.npmjs.com/package/protobufjs/v/7.6.5)
244
+ (from `^7.6.3`, in `dependencies`)
245
+
246
+ ## 0.2.25
247
+
248
+ ### Patch Changes
249
+
250
+ - [#9465](https://github.com/ardatan/graphql-mesh/pull/9465)
251
+ [`eece882`](https://github.com/ardatan/graphql-mesh/commit/eece8825bacc70210ca0b9d88b91da4ab7ae5cf9)
252
+ Thanks [@zcag](https://github.com/zcag)! - dependencies updates:
253
+ - Updated dependency
254
+ [`@graphql-mesh/string-interpolation@^0.5.17` ↗︎](https://www.npmjs.com/package/@graphql-mesh/string-interpolation/v/0.5.17)
255
+ (from `^0.5.16`, in `dependencies`)
256
+ - Updated dependency
257
+ [`@graphql-tools/utils@^11.1.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.1.1)
258
+ (from `^11.1.0`, in `dependencies`)
259
+ - Updated dependency
260
+ [`@grpc/grpc-js@^1.14.4` ↗︎](https://www.npmjs.com/package/@grpc/grpc-js/v/1.14.4) (from
261
+ `^1.14.3`, in `dependencies`)
262
+ - Updated dependency [`protobufjs@^7.6.3` ↗︎](https://www.npmjs.com/package/protobufjs/v/7.6.3)
263
+ (from `^8.0.2`, in `dependencies`)
264
+
265
+ - [#9525](https://github.com/ardatan/graphql-mesh/pull/9525)
266
+ [`f0036d4`](https://github.com/ardatan/graphql-mesh/commit/f0036d45ebbb4bd9efe53a9e326a45ae676f9b29)
267
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
268
+ - Updated dependency [`protobufjs@^7.6.3` ↗︎](https://www.npmjs.com/package/protobufjs/v/7.6.3)
269
+ (from `^7.5.8`, in `dependencies`)
270
+
271
+ - [#9530](https://github.com/ardatan/graphql-mesh/pull/9530)
272
+ [`6282a71`](https://github.com/ardatan/graphql-mesh/commit/6282a71a56fe3d640e8d84f3459ad2ad7ab1edad)
273
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
274
+ - Updated dependency
275
+ [`@graphql-tools/utils@^11.1.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.1.1)
276
+ (from `^11.1.0`, in `dependencies`)
277
+
278
+ - [#9547](https://github.com/ardatan/graphql-mesh/pull/9547)
279
+ [`b28d9ec`](https://github.com/ardatan/graphql-mesh/commit/b28d9ec67ace89503fda762049b09111409b43bd)
280
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
281
+ - Updated dependency
282
+ [`@graphql-mesh/transport-common@^1.0.17` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transport-common/v/1.0.17)
283
+ (from `^1.0.16`, in `dependencies`)
284
+ - Updated dependency
285
+ [`@graphql-tools/utils@^11.2.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.2.0)
286
+ (from `^11.1.1`, in `dependencies`)
287
+ - Updated dependencies
288
+ [[`eece882`](https://github.com/ardatan/graphql-mesh/commit/eece8825bacc70210ca0b9d88b91da4ab7ae5cf9),
289
+ [`6282a71`](https://github.com/ardatan/graphql-mesh/commit/6282a71a56fe3d640e8d84f3459ad2ad7ab1edad),
290
+ [`b28d9ec`](https://github.com/ardatan/graphql-mesh/commit/b28d9ec67ace89503fda762049b09111409b43bd),
291
+ [`eece882`](https://github.com/ardatan/graphql-mesh/commit/eece8825bacc70210ca0b9d88b91da4ab7ae5cf9)]:
292
+ - @graphql-mesh/cross-helpers@0.4.15
293
+ - @graphql-mesh/string-interpolation@0.5.18
294
+
295
+ ## 0.2.24
296
+
297
+ ### Patch Changes
298
+
299
+ - [#9502](https://github.com/ardatan/graphql-mesh/pull/9502)
300
+ [`679ee60`](https://github.com/ardatan/graphql-mesh/commit/679ee60c2b09f85655c9a58344e2544c5137c75a)
301
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
302
+ - Updated dependency
303
+ [`@grpc/grpc-js@^1.14.4` ↗︎](https://www.npmjs.com/package/@grpc/grpc-js/v/1.14.4) (from
304
+ `^1.14.3`, in `dependencies`)
305
+
306
+ - [#9503](https://github.com/ardatan/graphql-mesh/pull/9503)
307
+ [`69a8aac`](https://github.com/ardatan/graphql-mesh/commit/69a8aacd0566879cbd6fe806de3dfd43635f43d6)
308
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
309
+ - Updated dependency [`protobufjs@^7.5.8` ↗︎](https://www.npmjs.com/package/protobufjs/v/7.5.8)
310
+ (from `^8.0.2`, in `dependencies`)
311
+ - Updated dependencies
312
+ [[`06c0dee`](https://github.com/ardatan/graphql-mesh/commit/06c0deed78c53a092b423a8ca360515105127d10)]:
313
+ - @graphql-mesh/string-interpolation@0.5.17
314
+
315
+ ## 0.2.23
316
+
317
+ ### Patch Changes
318
+
319
+ - [#9455](https://github.com/ardatan/graphql-mesh/pull/9455)
320
+ [`b370a6e`](https://github.com/ardatan/graphql-mesh/commit/b370a6e58d0a2f9ae6cf73cec30bbcd73bd9b933)
321
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
322
+ - Updated dependency [`protobufjs@^8.0.2` ↗︎](https://www.npmjs.com/package/protobufjs/v/8.0.2)
323
+ (from `^8.0.1`, in `dependencies`)
324
+
325
+ ## 0.2.22
326
+
327
+ ### Patch Changes
328
+
329
+ - [#9430](https://github.com/ardatan/graphql-mesh/pull/9430)
330
+ [`8c7b764`](https://github.com/ardatan/graphql-mesh/commit/8c7b764dbd84356244f6e84dc36b7a3c1fc37a71)
331
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
332
+ - Updated dependency
333
+ [`@graphql-mesh/transport-common@^1.0.16` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transport-common/v/1.0.16)
334
+ (from `^1.0.15`, in `dependencies`)
335
+
336
+ - [#9446](https://github.com/ardatan/graphql-mesh/pull/9446)
337
+ [`6943e28`](https://github.com/ardatan/graphql-mesh/commit/6943e284f107bfb2f3cd958258a6f5402a366ab4)
338
+ Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
339
+ - Updated dependency
340
+ [`@graphql-tools/utils@^11.1.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.1.0)
341
+ (from `^11.0.1`, in `dependencies`)
342
+ - Updated dependencies
343
+ [[`6943e28`](https://github.com/ardatan/graphql-mesh/commit/6943e284f107bfb2f3cd958258a6f5402a366ab4)]:
344
+ - @graphql-mesh/cross-helpers@0.4.14
345
+
346
+ ## 0.2.21
347
+
348
+ ### Patch Changes
349
+
350
+ - [#9406](https://github.com/ardatan/graphql-mesh/pull/9406)
351
+ [`af31a59`](https://github.com/ardatan/graphql-mesh/commit/af31a59b2aaa7aabda3ea566e0c0c063b98c87c5)
352
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
353
+ - Updated dependency
354
+ [`@graphql-tools/utils@^11.0.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.1)
355
+ (from `^11.0.0`, in `dependencies`)
356
+ - Updated dependencies
357
+ [[`af31a59`](https://github.com/ardatan/graphql-mesh/commit/af31a59b2aaa7aabda3ea566e0c0c063b98c87c5)]:
358
+ - @graphql-mesh/cross-helpers@0.4.13
359
+
360
+ ## 0.2.20
361
+
362
+ ### Patch Changes
363
+
364
+ - [#9396](https://github.com/ardatan/graphql-mesh/pull/9396)
365
+ [`5904514`](https://github.com/ardatan/graphql-mesh/commit/5904514273b0d29fc4581bbddf082b392175640a)
366
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
367
+ - Updated dependency [`protobufjs@^8.0.1` ↗︎](https://www.npmjs.com/package/protobufjs/v/8.0.1)
368
+ (from `^8.0.0`, in `dependencies`)
369
+
370
+ ## 0.2.19
371
+
372
+ ### Patch Changes
373
+
374
+ - Updated dependencies
375
+ [[`94fbfbd`](https://github.com/ardatan/graphql-mesh/commit/94fbfbd41d56cfba3d11a7c3dc21b200a1f89069)]:
376
+ - @graphql-mesh/string-interpolation@0.5.16
377
+
378
+ ## 0.2.18
379
+
380
+ ### Patch Changes
381
+
382
+ - Updated dependencies
383
+ [[`339c32c`](https://github.com/ardatan/graphql-mesh/commit/339c32c44b5dfbc810c0cf3455b2ff068b5c5b00)]:
384
+ - @graphql-mesh/string-interpolation@0.5.15
385
+
386
+ ## 0.2.17
387
+
388
+ ### Patch Changes
389
+
390
+ - Updated dependencies
391
+ [[`3ad6a00`](https://github.com/ardatan/graphql-mesh/commit/3ad6a005a9daa1f93a4286dc3d240acd1059f53f)]:
392
+ - @graphql-mesh/string-interpolation@0.5.14
393
+
394
+ ## 0.2.16
395
+
396
+ ### Patch Changes
397
+
398
+ - Updated dependencies
399
+ [[`13af2ff`](https://github.com/ardatan/graphql-mesh/commit/13af2ff997cc63953ff50198d1851f8b7101c292)]:
400
+ - @graphql-mesh/string-interpolation@0.5.13
401
+
402
+ ## 0.2.15
403
+
404
+ ### Patch Changes
405
+
406
+ - Updated dependencies
407
+ [[`5d38d11`](https://github.com/ardatan/graphql-mesh/commit/5d38d11174172e27f3f0fd7588a83d481117d96c)]:
408
+ - @graphql-mesh/string-interpolation@0.5.12
409
+
410
+ ## 0.2.14
411
+
412
+ ### Patch Changes
413
+
414
+ - [#9267](https://github.com/ardatan/graphql-mesh/pull/9267)
415
+ [`0664ddb`](https://github.com/ardatan/graphql-mesh/commit/0664ddba78476e90f38560b55fcb88410cdfa72d)
416
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
417
+ - Updated dependency
418
+ [`@graphql-mesh/transport-common@^1.0.15` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transport-common/v/1.0.15)
419
+ (from `^1.0.14`, in `dependencies`)
420
+
421
+ ## 0.2.13
422
+
423
+ ### Patch Changes
424
+
425
+ - [#9182](https://github.com/ardatan/graphql-mesh/pull/9182)
426
+ [`1474343`](https://github.com/ardatan/graphql-mesh/commit/1474343567f953c97493e2da48de4f27f0bd109c)
427
+ Thanks [@ardatan](https://github.com/ardatan)! - Support characters that are invalid for GraphQL
428
+ but valid for gRPC in metadata definitions.
429
+
430
+ For example, hyphens (-) are not allowed in GraphQL field names, but they are commonly used in
431
+ gRPC metadata keys. This change ensures that such characters are preserved when passing metadata
432
+ from GraphQL Mesh to gRPC services.
433
+
434
+ ```ts
435
+ // mesh.config.ts
436
+ import { defineConfig } from '@graphql-mesh/compose-cli'
437
+ import { loadGrpcSubgraph } from '@omnigraph/grpc'
438
+
439
+ export const composeConfig = defineConfig({
440
+ subgraphs: [
441
+ {
442
+ sourceHandler: loadGrpcSubgraph('myService', {
443
+ endpoint: 'localhost:50051',
444
+ source: './service.proto',
445
+ metaData: {
446
+ 'x-request-id': "{context.headers['x-request-id']}" // ← hyphen in key causes issue
447
+ }
448
+ })
449
+ }
450
+ ]
451
+ })
452
+ ```
453
+
454
+ ## 0.2.12
455
+
456
+ ### Patch Changes
457
+
458
+ - [#9153](https://github.com/ardatan/graphql-mesh/pull/9153)
459
+ [`2410c44`](https://github.com/ardatan/graphql-mesh/commit/2410c44712ecc0d2e3f7eaaa03d854a32dc847de)
460
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
461
+ - Updated dependency
462
+ [`@graphql-mesh/transport-common@^1.0.14` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transport-common/v/1.0.14)
463
+ (from `^1.0.13`, in `dependencies`)
464
+ - Updated dependencies
465
+ [[`0028f3b`](https://github.com/ardatan/graphql-mesh/commit/0028f3bf555488ac91d3d92ac9bb33911fb79904)]:
466
+ - @graphql-mesh/string-interpolation@0.5.11
467
+
468
+ ## 0.2.11
469
+
470
+ ### Patch Changes
471
+
472
+ - [#9120](https://github.com/ardatan/graphql-mesh/pull/9120)
473
+ [`c219668`](https://github.com/ardatan/graphql-mesh/commit/c219668be72a56f0400a3086fe5144604b7ae948)
474
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
475
+ - Updated dependency
476
+ [`@graphql-tools/utils@^11.0.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/11.0.0)
477
+ (from `^10.11.0`, in `dependencies`)
478
+
479
+ - [#9129](https://github.com/ardatan/graphql-mesh/pull/9129)
480
+ [`3f91b5a`](https://github.com/ardatan/graphql-mesh/commit/3f91b5a5ca6dcb470e0e3897dd96c607f6e358c8)
481
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
482
+ - Updated dependency
483
+ [`@graphql-mesh/transport-common@^1.0.13` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transport-common/v/1.0.13)
484
+ (from `^1.0.0`, in `dependencies`)
485
+ - Updated dependencies
486
+ [[`c219668`](https://github.com/ardatan/graphql-mesh/commit/c219668be72a56f0400a3086fe5144604b7ae948)]:
487
+ - @graphql-mesh/cross-helpers@0.4.12
488
+
489
+ ## 0.2.10
490
+
491
+ ### Patch Changes
492
+
493
+ - Updated dependencies
494
+ [[`30e8e32`](https://github.com/ardatan/graphql-mesh/commit/30e8e324ca3e011530c3d6f61856f6dd69b582e9)]:
495
+ - @graphql-mesh/string-interpolation@0.5.10
496
+
497
+ ## 0.2.9
498
+
499
+ ### Patch Changes
500
+
501
+ - [#9066](https://github.com/ardatan/graphql-mesh/pull/9066)
502
+ [`2b1c3ae`](https://github.com/ardatan/graphql-mesh/commit/2b1c3ae0dd9b470a9779d0eaa78df4b6989ac5bc)
503
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
504
+ - Updated dependency
505
+ [`@grpc/grpc-js@^1.14.3` ↗︎](https://www.npmjs.com/package/@grpc/grpc-js/v/1.14.3) (from
506
+ `^1.14.2`, in `dependencies`)
507
+
508
+ - [#9100](https://github.com/ardatan/graphql-mesh/pull/9100)
509
+ [`81f5680`](https://github.com/ardatan/graphql-mesh/commit/81f5680e667099ea92367f25985fe4119a97272a)
510
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
511
+ - Updated dependency [`protobufjs@^8.0.0` ↗︎](https://www.npmjs.com/package/protobufjs/v/8.0.0)
512
+ (from `^7.2.5`, in `dependencies`)
513
+
514
+ ## 0.2.8
515
+
516
+ ### Patch Changes
517
+
518
+ - [#9027](https://github.com/ardatan/graphql-mesh/pull/9027)
519
+ [`72c443c`](https://github.com/ardatan/graphql-mesh/commit/72c443c0a2246c1573c72522d5ee7b6955f515d2)
520
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
521
+ - Updated dependency
522
+ [`@graphql-tools/utils@^10.11.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.11.0)
523
+ (from `^10.8.0`, in `dependencies`)
524
+
525
+ - [#9037](https://github.com/ardatan/graphql-mesh/pull/9037)
526
+ [`7c0b01e`](https://github.com/ardatan/graphql-mesh/commit/7c0b01e01b61853feb95ae5b5c4045507c5def1c)
527
+ Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
528
+ - Updated dependency
529
+ [`@grpc/grpc-js@^1.14.2` ↗︎](https://www.npmjs.com/package/@grpc/grpc-js/v/1.14.2) (from
530
+ `^1.1.7`, in `dependencies`)
531
+ - Updated dependencies
532
+ [[`72c443c`](https://github.com/ardatan/graphql-mesh/commit/72c443c0a2246c1573c72522d5ee7b6955f515d2)]:
533
+ - @graphql-mesh/cross-helpers@0.4.11
534
+
535
+ ## 0.2.7
536
+
537
+ ### Patch Changes
538
+
539
+ - [#8745](https://github.com/ardatan/graphql-mesh/pull/8745)
540
+ [`dfc6bc1`](https://github.com/ardatan/graphql-mesh/commit/dfc6bc10769092e6e44bf93a516f8d4e3dd1c681)
541
+ Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
542
+ - Updated dependency
543
+ [`@graphql-mesh/transport-common@^1.0.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transport-common/v/1.0.0)
544
+ (from `^0.7.13`, in `dependencies`)
545
+ - Updated dependencies
546
+ [[`f7ce86c`](https://github.com/ardatan/graphql-mesh/commit/f7ce86c86a170dc62ac88caea4a6ad6979249571)]:
547
+ - @graphql-mesh/string-interpolation@0.5.9
548
+
549
+ ## 0.2.6
550
+
551
+ ### Patch Changes
552
+
553
+ - [`84d2038`](https://github.com/ardatan/graphql-mesh/commit/84d2038b18d4a82b46a2ebdfbb06cfa791835631)
554
+ Thanks [@ardatan](https://github.com/ardatan)! - Improve gRPC compat
555
+
556
+ ## 0.2.5
557
+
558
+ ### Patch Changes
559
+
560
+ - [#8433](https://github.com/ardatan/graphql-mesh/pull/8433)
561
+ [`903124f`](https://github.com/ardatan/graphql-mesh/commit/903124f8245a518aac50ef8d0eff2fef01a206f2)
562
+ Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
563
+ - Updated dependency
564
+ [`@whatwg-node/disposablestack@^0.0.6` ↗︎](https://www.npmjs.com/package/@whatwg-node/disposablestack/v/0.0.6)
565
+ (from `^0.0.5`, in `dependencies`)
566
+
567
+ ## 0.2.4
568
+
569
+ ### Patch Changes
570
+
571
+ - [#8375](https://github.com/ardatan/graphql-mesh/pull/8375)
572
+ [`b44f8b7`](https://github.com/ardatan/graphql-mesh/commit/b44f8b7a413c8adb213b22fb8a243ca6aa06d2bd)
573
+ Thanks [@ardatan](https://github.com/ardatan)! - More clear key-value pairs in the logs
574
+
575
+ ## 0.2.3
576
+
577
+ ### Patch Changes
578
+
579
+ - [#8362](https://github.com/ardatan/graphql-mesh/pull/8362)
580
+ [`ce5e094`](https://github.com/ardatan/graphql-mesh/commit/ce5e0941e5a9445a0844d7225cf950a813011e9a)
581
+ Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
582
+ - Updated dependency
583
+ [`@graphql-tools/utils@^10.8.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.8.0)
584
+ (from `^10.6.0`, in `dependencies`)
585
+ - Updated dependencies
586
+ [[`ce5e094`](https://github.com/ardatan/graphql-mesh/commit/ce5e0941e5a9445a0844d7225cf950a813011e9a)]:
587
+ - @graphql-mesh/cross-helpers@0.4.10
588
+
589
+ ## 0.2.2
590
+
591
+ ### Patch Changes
592
+
593
+ - [#8289](https://github.com/ardatan/graphql-mesh/pull/8289)
594
+ [`c54e361`](https://github.com/ardatan/graphql-mesh/commit/c54e36110256541e03380b0d537085848169116b)
595
+ Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
596
+ - Added dependency [`micromatch@^4.0.8` ↗︎](https://www.npmjs.com/package/micromatch/v/4.0.8) (to
597
+ `dependencies`)
598
+
599
+ - [#8289](https://github.com/ardatan/graphql-mesh/pull/8289)
600
+ [`c54e361`](https://github.com/ardatan/graphql-mesh/commit/c54e36110256541e03380b0d537085848169116b)
601
+ Thanks [@ardatan](https://github.com/ardatan)! - New option `selectQueryOrMutationField` to decide
602
+ which field belongs to which root type explicitly.
603
+
604
+ ```ts filename="mesh.config.ts"
605
+ import { defineConfig } from '@graphql-mesh/compose-cli'
606
+ import loadGrpcSubgraph from '@omnigraph/grpc'
607
+
608
+ export const composeConfig = defineConfig({
609
+ subgraphs: [
610
+ {
611
+ sourceHandler: loadGrpcSubgraph('MyGrpcApi', {
612
+ /** .. **/
613
+
614
+ // Prefix to collect Query method default: list, get
615
+ prefixQueryMethod: ['list', 'get'],
616
+
617
+ // Select certain fields as Query or Mutation
618
+ // This overrides `prefixQueryMethod`
619
+ selectQueryOrMutationField: [
620
+ {
621
+ // You can use a pattern matching with *
622
+ fieldName: '*RetrieveMovies',
623
+ type: 'Query'
624
+ },
625
+ // Or you can use a specific field name
626
+ // This will make the field GetMovie available as a Mutation
627
+ // Because it would be Query because of `prefixQueryMethod`
628
+ {
629
+ fieldName: 'GetMovie',
630
+ type: 'Mutation'
631
+ }
632
+ ]
633
+ })
634
+ }
635
+ ]
636
+ })
637
+ ```
638
+
639
+ - Updated dependencies
640
+ [[`78c202e`](https://github.com/ardatan/graphql-mesh/commit/78c202ef8824607e27de1dcc5076c82a02ef86cd)]:
641
+ - @graphql-mesh/string-interpolation@0.5.8
642
+
643
+ ## 0.2.1
644
+
645
+ ### Patch Changes
646
+
647
+ - [#8270](https://github.com/ardatan/graphql-mesh/pull/8270)
648
+ [`d3656b6`](https://github.com/ardatan/graphql-mesh/commit/d3656b60fe47c74122e9dfad28273426b07b42ab)
649
+ Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
650
+ - Updated dependency
651
+ [`graphql-compose@^9.1.0` ↗︎](https://www.npmjs.com/package/graphql-compose/v/9.1.0) (from
652
+ `^9.0.11`, in `dependencies`)
653
+
654
+ ## 0.2.0
655
+
656
+ ### Minor Changes
657
+
658
+ - [#8203](https://github.com/ardatan/graphql-mesh/pull/8203)
659
+ [`c541164`](https://github.com/ardatan/graphql-mesh/commit/c541164f9d02fcc70389ee768610921ff0e622e6)
660
+ Thanks [@ardatan](https://github.com/ardatan)! - Handle multiple gRPC services correctly in a
661
+ supergraph
662
+
663
+ Previously multiple directives on Query type conflicting, which needs to be fixed on Gateway
664
+ runtime later, but for now, it should be already in the transport directive. And this change fixes
665
+ the issue before the gateway runtime fix.
666
+
667
+ Generated schema will be different so this can be considered a breaking change but it will be no
668
+ functional change for the existing users.
669
+
670
+ ## 0.1.3
671
+
672
+ ### Patch Changes
673
+
674
+ - Updated dependencies
675
+ [[`2ef651a`](https://github.com/ardatan/graphql-mesh/commit/2ef651a8356b560478f1847399bad975a0c3f0b9),
676
+ [`2ef651a`](https://github.com/ardatan/graphql-mesh/commit/2ef651a8356b560478f1847399bad975a0c3f0b9)]:
677
+ - @graphql-mesh/cross-helpers@0.4.9
678
+ - @graphql-mesh/string-interpolation@0.5.7
679
+
680
+ ## 0.1.2
681
+
682
+ ### Patch Changes
683
+
684
+ - [#7978](https://github.com/ardatan/graphql-mesh/pull/7978)
685
+ [`92d3ce1`](https://github.com/ardatan/graphql-mesh/commit/92d3ce10bcfdb1bbf63165f77bdb5acd713c88ac)
686
+ Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
687
+ - Updated dependency
688
+ [`@graphql-tools/utils@^10.6.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.6.0)
689
+ (from `^10.5.5`, in `dependencies`)
690
+ - Updated dependencies
691
+ [[`92d3ce1`](https://github.com/ardatan/graphql-mesh/commit/92d3ce10bcfdb1bbf63165f77bdb5acd713c88ac)]:
692
+ - @graphql-mesh/cross-helpers@0.4.8
693
+
694
+ ## 0.1.1
695
+
696
+ ### Patch Changes
697
+
698
+ - Updated dependencies []:
699
+ - @graphql-mesh/transport-common@0.7.13
700
+
701
+ ## 0.1.0
702
+
703
+ ### Minor Changes
704
+
705
+ - [#7866](https://github.com/ardatan/graphql-mesh/pull/7866)
706
+ [`0788b5d`](https://github.com/ardatan/graphql-mesh/commit/0788b5d76b7439af804781a33cb3c065c524dd63)
707
+ Thanks [@renovate](https://github.com/apps/renovate)! - Use shared TransportOptions scalar in all
708
+ transport directive definitions
709
+
710
+ ## 0.0.1
711
+
712
+ ### Patch Changes
713
+
714
+ - Updated dependencies
715
+ [[`de41fc2`](https://github.com/ardatan/graphql-mesh/commit/de41fc2932433f8da35b9de9492720e6c8c100af)]:
716
+ - @graphql-mesh/transport-common@0.7.12