@graphql-hive/gateway-runtime 2.8.11 → 2.9.0
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 +15 -0
- package/dist/index.cjs +83 -2
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +85 -4
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -746,6 +746,10 @@ interface GatewayConfigBase<TContext extends Record<string, any>> {
|
|
|
746
746
|
* The logo of the product.
|
|
747
747
|
*/
|
|
748
748
|
productLogo?: string;
|
|
749
|
+
/**
|
|
750
|
+
* The name of the playground.
|
|
751
|
+
*/
|
|
752
|
+
playgroundName?: string;
|
|
749
753
|
/**
|
|
750
754
|
* The link to the product website
|
|
751
755
|
*/
|
|
@@ -953,6 +957,7 @@ type ExecutionArgs<TContext> = Omit<ExecutionArgs$1, 'contextValue'> & {
|
|
|
953
957
|
type GatewayRuntime<TContext extends Record<string, any> = Record<string, any>> = YogaServerInstance<any, TContext> & {
|
|
954
958
|
invalidateUnifiedGraph(): void;
|
|
955
959
|
getSchema(): MaybePromise$1<GraphQLSchema>;
|
|
960
|
+
sdkRequester<TData = any, TVariables = Record<string, any>>(document: DocumentNode, variables?: TVariables, context?: TContext): Promise<TData> | AsyncIterable<TData>;
|
|
956
961
|
};
|
|
957
962
|
declare function createGatewayRuntime<TContext extends Record<string, any> = Record<string, any>>(config: GatewayConfig<TContext>): GatewayRuntime<TContext>;
|
|
958
963
|
|
package/dist/index.d.ts
CHANGED
|
@@ -746,6 +746,10 @@ interface GatewayConfigBase<TContext extends Record<string, any>> {
|
|
|
746
746
|
* The logo of the product.
|
|
747
747
|
*/
|
|
748
748
|
productLogo?: string;
|
|
749
|
+
/**
|
|
750
|
+
* The name of the playground.
|
|
751
|
+
*/
|
|
752
|
+
playgroundName?: string;
|
|
749
753
|
/**
|
|
750
754
|
* The link to the product website
|
|
751
755
|
*/
|
|
@@ -953,6 +957,7 @@ type ExecutionArgs<TContext> = Omit<ExecutionArgs$1, 'contextValue'> & {
|
|
|
953
957
|
type GatewayRuntime<TContext extends Record<string, any> = Record<string, any>> = YogaServerInstance<any, TContext> & {
|
|
954
958
|
invalidateUnifiedGraph(): void;
|
|
955
959
|
getSchema(): MaybePromise$1<GraphQLSchema>;
|
|
960
|
+
sdkRequester<TData = any, TVariables = Record<string, any>>(document: DocumentNode, variables?: TVariables, context?: TContext): Promise<TData> | AsyncIterable<TData>;
|
|
956
961
|
};
|
|
957
962
|
declare function createGatewayRuntime<TContext extends Record<string, any> = Record<string, any>>(config: GatewayConfig<TContext>): GatewayRuntime<TContext>;
|
|
958
963
|
|