Skip to content

Commit e9c2cd1

Browse files
authored
Update Examples (#1392)
1 parent cf05e90 commit e9c2cd1

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed
Binary file not shown.

examples/openapi-additional-resolvers/gateway.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import { defineConfig } from '@graphql-hive/gateway';
22

33
export const gatewayConfig = defineConfig({
4+
transportEntries: {
5+
'*.rest': {
6+
headers: [['user-agent', 'hive-gateway/e2e']],
7+
},
8+
},
49
additionalResolvers: {
510
pageview_project: {
611
banana() {
48 Bytes
Binary file not shown.

examples/openapi-javascript-wiki/gateway.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import { defineConfig } from '@graphql-hive/gateway';
22
import moment from 'moment';
33

44
export const gatewayConfig = defineConfig({
5+
transportEntries: {
6+
'*.rest': {
7+
headers: [['user-agent', 'hive-gateway/e2e']],
8+
},
9+
},
510
additionalResolvers: {
611
Query: {
712
async viewsInPastMonth(

0 commit comments

Comments
 (0)