Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
March 26, 2022 06:51 am GMT

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:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To