Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/@graphql-hive_gateway-2006-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@graphql-hive/gateway': patch
---

dependencies updates:

- Added dependency [`@graphql-hive/render-laboratory@^0.1.2` ↗︎](https://www.npmjs.com/package/@graphql-hive/render-laboratory/v/0.1.2) (to `dependencies`)
1 change: 1 addition & 0 deletions packages/gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"@graphql-hive/plugin-aws-sigv4": "workspace:^",
"@graphql-hive/plugin-opentelemetry": "workspace:^",
"@graphql-hive/pubsub": "workspace:^",
"@graphql-hive/render-laboratory": "^0.1.2",
"@graphql-mesh/cache-cfw-kv": "^0.105.16",
"@graphql-mesh/cache-localforage": "^0.105.17",
"@graphql-mesh/cache-redis": "^0.105.2",
Expand Down
13 changes: 10 additions & 3 deletions packages/gateway/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ import { Logger } from '@graphql-hive/logger';
import type { AWSSignv4PluginOptions } from '@graphql-hive/plugin-aws-sigv4';
import type { OpenTelemetryGatewayPluginOptions } from '@graphql-hive/plugin-opentelemetry';
import type { PubSub } from '@graphql-hive/pubsub';
import { renderLaboratory } from '@graphql-hive/render-laboratory';
import type UpstashRedisCache from '@graphql-mesh/cache-upstash-redis';
import type { JWTAuthPluginOptions } from '@graphql-mesh/plugin-jwt-auth';
import type { PrometheusPluginOptions } from '@graphql-mesh/plugin-prometheus';
import type { KeyValueCache, YamlConfig } from '@graphql-mesh/types';
import { renderGraphiQL } from '@graphql-yoga/render-graphiql';
import { getEnvBool, isDebug } from '~internal/env';
import type { GraphiQLRenderer } from 'graphql-yoga';
import parseDuration from 'parse-duration';
import { addCommands } from './commands/index';
import { createDefaultConfigPaths } from './config';
Expand Down Expand Up @@ -267,7 +268,13 @@ export type AddCommand = (ctx: CLIContext, cli: CLI) => void;

// we dont use `Option.default()` in the command definitions because we want the CLI options to
// override the config file (with option defaults, config file will always be overwritten)
export const defaultOptions = {
export const defaultOptions: {
fork: number;
host: string;
port: number;
pollingInterval: number;
renderGraphiQL: GraphiQLRenderer;
} = {
fork: 1,
host:
platform().toLowerCase() === 'win32' ||
Expand All @@ -277,7 +284,7 @@ export const defaultOptions = {
: '0.0.0.0',
port: 4000,
pollingInterval: 10_000,
renderGraphiQL,
renderGraphiQL: renderLaboratory,
};

/** Root cli for the gateway. */
Expand Down
Loading
Loading