Skip to main content

Interface: CollectionFetchProps<M>

Type parameters

NameType
Mextends Object

Properties

entitiesDisplayedFirst

โ€ข Optional entitiesDisplayedFirst: Entity<M>[]

List of entities that will be displayed on top, no matter the ordering. This is used for reference fields selection

Defined in

hooks/data/useCollectionFetch.tsx:29


filterValues

โ€ข Optional filterValues: FilterValues<M>

Filter the fetched data by the property

Defined in

hooks/data/useCollectionFetch.tsx:34


itemCount

โ€ข Optional itemCount: number

Number of entities to fetch

Defined in

hooks/data/useCollectionFetch.tsx:23


path

โ€ข path: string

Absolute collection path

Defined in

hooks/data/useCollectionFetch.tsx:13


schemaResolver

โ€ข schemaResolver: EntitySchemaResolver<M>

Schema of the entity displayed by this collection

Defined in

hooks/data/useCollectionFetch.tsx:18


searchString

โ€ข Optional searchString: string

Search string

Defined in

hooks/data/useCollectionFetch.tsx:44


sortBy

โ€ข Optional sortBy: [Extract<keyof M, string>, "asc" | "desc"]

Sort the results by

Defined in

hooks/data/useCollectionFetch.tsx:39