An Interest In:
Web News this Week
- March 22, 2024
- March 21, 2024
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
March 26, 2022 06:51 am GMT
Original Link: https://dev.to/yaswanthteja/all-mongodb-collection-commands-g89
All MongoDb Collection Commands
In this post, we will see a comprehensive list of all the MongoDB Collection (tables in sql) commands you will ever need as a MongoDB beginner.
I will assume that you are working inside a collection named 'comments' on a MongoDB database of your choice
Collection Commands
- Show Collections
show collections
- Create a collection named 'comments'
db.createCollection('comments')
- Drop a collection named 'comments'
db.comments.drop()
clickhere to see MongoDb commands
Original Link: https://dev.to/yaswanthteja/all-mongodb-collection-commands-g89
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To