useDataSource
Use this hook to get the datasource being used.
This controller allows you to fetch and save data from the datasource (such as Firestore) using the abstraction of collection and entities created by FireCMS.
fetchCollection
: Fetch data from a collectionlistenCollection
: Listen to a entities in a given path.fetchEntity
: Retrieve an entity given a path and a schemalistenEntity
: Get realtime updates on one entity.saveEntity
: Save entity to the specified pathdeleteEntity
: Delete an entitycheckUniqueField
: Check if the given property is unique in the given collection