Methods
watch()
The watch() method is used to interact with collections in MongoDB.
watch()
The watch() method is used to interact with collections in MongoDB.
Syntax
db.collection.watch(...)
Example
db.users.watch(...)The watch() method is used to interact with collections in MongoDB.
The watch() method is used to interact with collections in MongoDB.
db.collection.watch(...)
db.users.watch(...)