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
<keyofM
,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
<keyofM
,string
>,"asc"
|"desc"
]
Sort the results by
Defined in​
packages/firecms_core/src/hooks/data/useCollectionFetch.tsx:35