Must be called with super
subCollection mustache path
Firestore database to use
Parent getNewModelMethod
Parent before save method to apply
Bucket if model contains files to save
Parent before save method to apply
The databse to use to store data
Collection path with mustache document ids (e.g. lists/{lists}/items)
Parent getNewModelMethod
The bucket where files will be stored
Returns true or false denpending on if the data contains values applicable to this subDao's submodel
The data to check
boolean
Delete a model by its reference
Document reference
Override this method to delete files from somewhere else than in firestore storage
File object containing the file to delete
Get a model from database from id or location
id or location of the document in database
(withSnapshot, completeOnFirst, cacheable)
asynchronous answer with model
Get a model from database from its path
String path to the document in database
(withSnapshot, completeOnFirst, cacheable)
asynchronous answer with model
Get a model from database from its reference
Document reference
(withSnapshot, completeOnFirst, cacheable)
asynchronous answer with model
Get a list of documents in the collection
List of path ids
(withSnapshot, completeOnFirst, where, orderBy, limit, offset, cacheable)
Convert a database document snapshot to a model
Database document snapshot
Model
Get a new instance of model M
Data to inject in this model
Location of the model in database
new model
Get a reference from a compatible path
The path for which get a reference
a CollectionReference or a documentReference depending on the path param
Get a document snapshot from database from an id or a location
id or location (pathIds)
(where, orderBy, limit, offset, cacheable)
Async answer with the snapshot
Check if the model or reference is compatible with this DAO based on its path
Model or reference to chheck
Override this method to save files somewhere else than in firestore storage
File object containing the file to save
id or location (pathIds) of the document containing the file object
Promise of the file object containing storage informations
Splits the data passed as parameter into data applicable to different documents using the same DAO
the data to split
An object containing the data splitted by docIds
Generated using TypeDoc
Abstract Dao class use for subdocuments of flattable model