Must be called with super()
The databse to use to store data
The bucket where files will be stored
The databse to use to store data
Collection path with mustache document ids (e.g. lists/{lists}/items)
The bucket where files will be stored
Override this method to execute actions before saving document in database
the document to save
id or location (pathIds) where the document will be saved
Promise with the document that will be saved instead of the input one
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
Delete files from declared file properties and returns the model
the model for which files must be deleted
override delete on delete default option
Promise of the model
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
Returns array of file properties names for the partial model consumed or if missing, for the model appliable to this dao
Some partial or full 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 the first offset snapshot available (startAt > startAfter > endAt > endBefore)
The offset option value used here
get one options to apply
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
Save files from declared file properties and returns the model with storage informations and location with new document id
the model for which files must be stored
location of the model
Promise of an object containing the model with storage informations and location with new document id
Returns a function consuming an options object and displaying a warning if some options are not available in nodejs context
The name of the method where this method was called
Generated using TypeDoc