@graphql-hive/yoga
Version:
Hive Console + GraphQL Yoga
15 lines • 837 B
TypeScript
import { type Plugin } from 'graphql-yoga';
import { HiveClient, HivePluginOptions } from '@graphql-hive/core';
export { atLeastOnceSampler, createSchemaFetcher, createServicesFetcher, createSupergraphSDLFetcher, } from '@graphql-hive/core';
export type { SupergraphSDLFetcherOptions } from '@graphql-hive/core';
export type YogaPluginOptions = HivePluginOptions & {
/**
* Size of document cache. This is used to store a transformed version of the operation
* because abstract types must include a __typename. Default: 10_000
*/
cache?: number;
};
export declare function createHive(clientOrOptions: YogaPluginOptions): HiveClient;
export declare function useHive(clientOrOptions: HiveClient): Plugin;
export declare function useHive(clientOrOptions: YogaPluginOptions): Plugin;
//# sourceMappingURL=index.d.ts.map