Skip to main content
Version: 3.0.0-beta

Type Alias: EntityCollectionsBuilder()<EC>

EntityCollectionsBuilder<EC>: (params) => EC[] | Promise<EC[]>

Use this callback to build entity collections dynamically. You can use the user to decide which collections to show. You can also use the data source to fetch additional data to build the collections. Note: you can use any type of synchronous or asynchronous code here, including fetching data from external sources, like using the Firestore APIs directly, or a REST API.

Type Parameters​

• EC extends EntityCollection = EntityCollection

Parameters​

• params

• params.authController: AuthController

• params.dataSource: DataSourceDelegate

• params.user: User | null

Returns​

EC[] | Promise<EC[]>

Defined in​

packages/firecms_core/src/types/firecms.tsx:26

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