@graphql-hive/apollo
Version:
GraphQL Hive + Apollo Server
17 lines • 913 B
text/typescript
import type { ApolloServerPlugin } from '@apollo/server';
import { HiveClient, HivePluginOptions, SupergraphSDLFetcherOptions } from '@graphql-hive/core';
export { atLeastOnceSampler, createSchemaFetcher, createServicesFetcher, createSupergraphSDLFetcher, } from '@graphql-hive/core';
export type { SupergraphSDLFetcherOptions } from '@graphql-hive/core';
export declare function createSupergraphManager({ pollIntervalInMs, ...superGraphFetcherOptions }: {
pollIntervalInMs?: number;
} & SupergraphSDLFetcherOptions): {
initialize(hooks: {
update(supergraphSdl: string): void;
}): Promise<{
supergraphSdl: string;
cleanup?: () => Promise<void>;
}>;
};
export declare function createHive(clientOrOptions: HivePluginOptions): HiveClient;
export declare function useHive(clientOrOptions: HiveClient | HivePluginOptions): ApolloServerPlugin;
//# sourceMappingURL=index.d.ts.map