Skip to content

BuildListViewFindQueryArgsProps

Defined in: packages/core/src/collections/listView/listViewQueryArgs.ts:47

Props for buildListViewFindQueryArgs.

  • BuildListViewQueryArgsBaseProps<TFieldSlug>

TFieldSlug extends string = string

collection: CollectionConfig<{ }, { }, string, Record<string, AdminField>, ComponentHKT, boolean, boolean, string> | MediaCollectionConfig

Defined in: packages/core/src/collections/listView/listViewQueryArgs.ts:28

The resolved collection (or media collection) config — same object useVexListQuery and NextAdminPage both already hold.

BuildListViewQueryArgsBaseProps.collection


optional cursor?: string | null

Defined in: packages/core/src/collections/listView/listViewQueryArgs.ts:43

Load More’s cursor. undefined/omitted means the first page — every server prefetch reads one.

BuildListViewQueryArgsBaseProps.cursor


optional depth?: number

Defined in: packages/core/src/collections/listView/listViewQueryArgs.ts:52

Relationship auto-populate depth.


optional drafts?: boolean

Defined in: packages/core/src/collections/listView/listViewQueryArgs.ts:32

Include draft versions of versioned documents.

BuildListViewQueryArgsBaseProps.drafts


numItems: number

Defined in: packages/core/src/collections/listView/listViewQueryArgs.ts:41

Documents to fetch this round-trip — already Math.max(collection.admin.view.state.serverPageSize, pageSize) (Step 8’s “the server batch always covers at least one client page” rule). That Math.max stays at each CALLER’s own site, beside the pageSize/size value it reads, rather than moving in here — useVexListQuery and NextAdminPage read pageSize from two different places (a hook prop vs. resolveListViewQueryState’s output), so there is no single shared pageSize input to compute it from.

BuildListViewQueryArgsBaseProps.numItems


optional sort?: CollectionTableSort<TFieldSlug>

Defined in: packages/core/src/collections/listView/listViewQueryArgs.ts:50

Portable sort (Design Decision 5). Parked while searching (Design Decision 7) — buildListViewSearchQueryArgs has no sort param at all.


optional where?: VexWhere<TFieldSlug>

Defined in: packages/core/src/collections/listView/listViewQueryArgs.ts:30

Predicate over the collection’s fields: a builder callback or an already-plain node.

BuildListViewQueryArgsBaseProps.where