On this page
mongosh
The following operations provide support for views:
collMod
count
create
distinct
find
db.collection.aggregate()
db.collection.count()
db.collection.countDocuments()
db.collection.distinct()
db.collection.find()
db.collection.findOne()
db.createCollection()
db.createView()
db.getCollection()
db.getCollectionInfos()
db.getCollectionNames()
Back
Remove a View
Next
On-Demand Materialized Views