UNPKG

payload

Version:

Node, React, Headless CMS and Application Framework built on Next.js

23 lines 983 B
import DataLoader from 'dataloader'; import type { PayloadRequest, PopulateType, SelectType } from '../types/index.js'; import type { TypeWithID } from './config/types.js'; export declare const getDataLoader: (req: PayloadRequest) => { find: import("../index.js").Payload["find"]; } & DataLoader<string, TypeWithID, string>; type CreateCacheKeyArgs = { collectionSlug: string; currentDepth: number; depth: number; docID: number | string; draft: boolean; fallbackLocale: string; locale: string; overrideAccess: boolean; populate?: PopulateType; select?: SelectType; showHiddenFields: boolean; transactionID: number | Promise<number | string> | string; }; export declare const createDataloaderCacheKey: ({ collectionSlug, currentDepth, depth, docID, draft, fallbackLocale, locale, overrideAccess, populate, select, showHiddenFields, transactionID, }: CreateCacheKeyArgs) => string; export {}; //# sourceMappingURL=dataloader.d.ts.map