wgc
Version:
The official CLI tool to manage the GraphQL Federation Platform Cosmo
29 lines (28 loc) • 858 B
TypeScript
import { Client } from '../../../core/client/client.js';
export interface Subgraph {
name: string;
routingURL: string;
subscriptionURL: string;
subscriptionProtocol: string;
isEventDrivenGraph?: boolean;
isV2Graph?: boolean;
}
export declare const getSubgraphsOfFedGraph: ({ client, name, namespace, }: {
client: Client;
name: string;
namespace?: string;
}) => Promise<Subgraph[]>;
export declare const getFederatedGraphSchemas: ({ client, name, namespace, }: {
client: Client;
name: string;
namespace?: string;
}) => Promise<{
sdl: string;
clientSchema: string | undefined;
}>;
export declare const getSubgraphSDL: ({ client, fedGraphName, subgraphName, namespace, }: {
client: Client;
fedGraphName: string;
subgraphName: string;
namespace?: string;
}) => Promise<string | undefined>;