Modifying Data
Declaring Variable
Methods
db.create(path, value)
db.set(path, value)
db.update(path, value)
db.push(path, value)
create(path, value)
This will create a new collection and documents.
set(path, value)
Modify the whole document data. This is different than the update
method
update(path, value)
Modify only the specified field in the document data
push(path, value)
Push item into an array inside the document
Last updated