Labels

Thursday, 7 January 2016

MongoDB : How to create collection in MongoDB

We can use db.collection.insert(document) method to insert or create new collection in the MongoDB.

Ex:

db.product.insert({item:"card",qty:5,company:"Mongo"})

No comments:

Post a Comment