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
25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
import type { PaginatedDocs } from '../../database/types.js';
|
|
import type { CollectionSlug, FindOptions, JoinQuery } from '../../index.js';
|
|
import type { PayloadRequest, PopulateType, SelectType, Sort, TransformCollectionWithSelect, Where } from '../../types/index.js';
|
|
import type { Collection, SelectFromCollectionSlug } from '../config/types.js';
|
|
export type Arguments = {
|
|
collection: Collection;
|
|
currentDepth?: number;
|
|
depth?: number;
|
|
disableErrors?: boolean;
|
|
draft?: boolean;
|
|
includeLockStatus?: boolean;
|
|
joins?: JoinQuery;
|
|
limit?: number;
|
|
overrideAccess?: boolean;
|
|
page?: number;
|
|
pagination?: boolean;
|
|
populate?: PopulateType;
|
|
req?: PayloadRequest;
|
|
showHiddenFields?: boolean;
|
|
sort?: Sort;
|
|
trash?: boolean;
|
|
where?: Where;
|
|
} & Pick<FindOptions<string, SelectType>, 'select'>;
|
|
export declare const findOperation: <TSlug extends CollectionSlug, TSelect extends SelectFromCollectionSlug<TSlug>>(incomingArgs: Arguments) => Promise<PaginatedDocs<TransformCollectionWithSelect<TSlug, TSelect>>>;
|
|
//# sourceMappingURL=find.d.ts.map |