A collection data type definition.
The collection name.
Protected collectionProtected Readonly dbProtected debugProtected Readonly namePrivate chunkProtected clearThe makeReferableEntities() method converts fetched data to ReferableMapEntity.
Fetched data
The fetch() method fetch the collection from database, mutate, and then save it as a cache.
Promise
Optional mutator: CollectionMutator<QuerySnapshot<DocumentData>> = ...Mutator mutates raw collection data from the database to certain format check Mutator for some built-in mutators.
The fetchNoRef() method fetch the collection from database without referable property, mutate, and then save it as a cache.
Promise
Optional mutator: CollectionMutator<QuerySnapshot<DocumentData>> = ...Mutator mutates raw collection data from the database to certain format check Mutator for some built-in mutators.
Protected handleThe handleChanges() abstract method will be used to handle DataChanges to match the database required form. Note: Different databases require different procedures to process DataChanges.
Received changes.
Protected initThe readFromCache() method retrieve data from saved cache.
Automatically fetch data from the database if it is not presented.
The readFromCacheNoRef() method retrieve data from saved cache without referable property.
Automatically fetch data from the database if it is not presented.
Protected retrieveThe setDefaultMutator() method set Collection's defaultMutator, which will be used when resources are being fetched automatically.
Mutator mutates raw collection data from the database to certain format check Mutator for some built-in mutators.
Protected verifyGenerated using TypeDoc
The Collection() class hold data resources. User can choose either fetch from database or cache.