Skip to content

BuildListViewSearchQueryArgsProps

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

Props for buildListViewSearchQueryArgs.

  • 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 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


search: string

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

Raw search text. Never empty — the caller branches to buildListViewFindQueryArgs instead when it is.


searchField: TFieldSlug

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

Which admin.view.state.searchFields entry search queries — validateSavedListViewConfig (Design Decision 3) guarantees it has a declared searchIndex.


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