Answers for "list all mongodb documents"

0

list all collections in the MongoDB shell

JavaScript (shell):
db.getCollectionNames()

Node.js:
db.listCollections()
Posted by: Guest on July-19-2020
0

show all mongodb

/*Mongo db*/
db.Profiles.find( {} )
Posted by: Guest on September-03-2021

Code answers related to "list all mongodb documents"

Browse Popular Code Answers by Language