UNPKG

@graphql-hive/yoga

Version:
15 lines 837 B
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