Skip to main content
Version: 3.0.0-beta

Interface: CollectionFetchProps<M>

Type Parameters​

• M extends Record<string, any>

Properties​

collection​

collection: EntityCollection<M, any>

collection of the entity displayed by this collection

Defined in​

packages/firecms_core/src/hooks/data/useCollectionFetch.tsx:20


filterValues?​

optional filterValues: Partial<Record<Extract<keyof M, string>, [WhereFilterOp, any]>>

Filter the fetched data by the property

Defined in​

packages/firecms_core/src/hooks/data/useCollectionFetch.tsx:30


itemCount?​

optional itemCount: number

Number of entities to fetch

Defined in​

packages/firecms_core/src/hooks/data/useCollectionFetch.tsx:25


path​

path: string

Absolute collection path

Defined in​

packages/firecms_core/src/hooks/data/useCollectionFetch.tsx:15


searchString?​

optional searchString: string

Search string

Defined in​

packages/firecms_core/src/hooks/data/useCollectionFetch.tsx:40


sortBy?​

optional sortBy: [Extract<keyof M, string>, "asc" | "desc"]

Sort the results by

Defined in​

packages/firecms_core/src/hooks/data/useCollectionFetch.tsx:35

Sign up to our newsletter to get the latest news and updates. No spam!