Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
24 lines
1.0 KiB
Plaintext
24 lines
1.0 KiB
Plaintext
import DataLoader from 'dataloader';
|
|
import type { Payload, TypedFallbackLocale } from '../index.js';
|
|
import type { PayloadRequest, PopulateType, SelectType } from '../types/index.js';
|
|
import type { TypeWithID } from './config/types.js';
|
|
export declare const getDataLoader: (req: PayloadRequest) => {
|
|
find: Payload["find"];
|
|
} & DataLoader<string, TypeWithID, string>;
|
|
type CreateCacheKeyArgs = {
|
|
collectionSlug: string;
|
|
currentDepth: number;
|
|
depth: number;
|
|
docID: number | string;
|
|
draft: boolean;
|
|
fallbackLocale: TypedFallbackLocale;
|
|
locale: string | 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 |