Skip to content

TypeScript API / @laikacms/astro/loader / DocumentSelectOptions

Interface: DocumentSelectOptions ​

Properties ​

depth? ​

ts
optional depth?: number;

How many levels below the folder to descend. Defaults to 64 — effectively "all".


folder? ​

ts
optional folder?: string;

A sub-folder inside the collection. Omit to read the whole collection.


language? ​

ts
optional language?: string;

Keep only documents in this language.


pagination? ​

ts
optional pagination?: LoaderPagination;

Page size used while draining the listing. Defaults to { perPage: 1000 }.


statuses? ​

ts
optional statuses?: string[];

Restrict to these unpublished statuses. Only meaningful with type: 'unpublished'.


type? ​

ts
optional type?: "published" | "unpublished";

Which publication state to read. Defaults to 'published'.

Released under the MIT License.