CollectionFetchProps
@firecms/core / CollectionFetchProps
Interface: CollectionFetchProps<M>
Section titled “Interface: CollectionFetchProps<M>”Defined in: hooks/data/useCollectionFetch.tsx:10
Type Parameters
Section titled “Type Parameters”M extends Record<string, any>
Properties
Section titled “Properties”collection
Section titled “collection”collection:
EntityCollection<M>
Defined in: hooks/data/useCollectionFetch.tsx:20
collection of the entity displayed by this collection
filterValues?
Section titled “filterValues?”
optionalfilterValues:Partial<Record<Extract<keyofM,string>, [WhereFilterOp,any]>>
Defined in: hooks/data/useCollectionFetch.tsx:30
Filter the fetched data by the property
itemCount?
Section titled “itemCount?”
optionalitemCount:number
Defined in: hooks/data/useCollectionFetch.tsx:25
Number of entities to fetch
path:
string
Defined in: hooks/data/useCollectionFetch.tsx:15
Absolute collection path
searchString?
Section titled “searchString?”
optionalsearchString:string
Defined in: hooks/data/useCollectionFetch.tsx:40
Search string
sortBy?
Section titled “sortBy?”
optionalsortBy: [Extract<keyofM,string>,"desc"|"asc"]
Defined in: hooks/data/useCollectionFetch.tsx:35
Sort the results by