UNPKG

@sterblue/sterblue-sdk

Version:

Sterblue Graph SDK for graphile.sterblue.com

20 lines (19 loc) 619 B
import { DocumentNode } from "graphql"; /** * Stream a list query as an async iterable using batches. * Allow to perform huge queries, replace queryHugeData */ export declare const streamQueryNoCount: <R>(queryFunction: (options: { query: DocumentNode; variables: { first: number; offset: number; }; }) => Promise<R>, dataPath?: any[]) => ({ query, variables: { first, offset, batchSize, ...variables }, ...options }: { query: DocumentNode; variables?: { first?: number; offset?: number; batchSize?: number; }; }) => Promise<AsyncIterableIterator<R>>;