🚀 Want to start or advance your IT career? My guide can help: https://bit.ly/guiacanalti
In this 15-minute tutorial, you'll learn how to use MongoDB in practice, including the essential commands for creating, querying, updating, and deleting data in a NoSQL database. We'll explore how to perform operations such as inserting, finding, updating, deleting, as well as advanced filters and counts, all with practical examples in MongoDB and Robo3T. Watch now to learn everything about MongoDB in just 15 minutes and start using this powerful NoSQL database in your projects!
Topics covered:
✅ What is MongoDB?
✅ Basic and Advanced MongoDB Commands
✅ How to Use Robo3T to Manage Your MongoDB Database
✅ Practical Tips for Working with MongoDB Everyday
MongoDB Documentation ► https://docs.mongodb.com/manual/intro...
MongoDB Website ► https://www.mongodb.com
Robo3T Website ► https://robomongo.org
Commands Used in the Video:
show dbs;
use canalti;
show collections;
db.createCollection("item");
db.item.insert({ "name": "Item 1", "price": 10.0 });
db.item.find();
db.item.insertMany([ { "name": "Item 2", "price": 20.0 }, { "name": "Item 3", "price": 30.0 }]);
db.item.find().limit(1);
db.item.find({_id: ObjectId("5ff5f14c92040feeff5e12d7")});
db.item.find({name: "Item 2"});
db.item.find({name: "Item 2"}, {name: 1});
db.item.find({name: "Item 2"}, {_id: 0, name: 1});
db.item.find().count();
db.item.find({name: "Item 2"}).count();
db.item.remove({_id: ObjectId("5ff5f14c92040feeff5e12d8")});
db.item.update({_id: ObjectId("5ff5f0f092040feeff5e12d6")}, {$set: {price: 30.00}});
db.item.update({_id: ObjectId("5ff5f0f092040feeff5e12d6")}, {$set: {name: "Item 11", price: 30.00}});
db.item.find({price: { $gt: 25 }});
db.item.find({price: { $eq: 25 }});
db.item.find({price: { $gt: 25 }});
db.item.find({price: { $lt: 25 }});
db.item.find({price: { $in: [20.0, 30.0] }});
db.item.find({price: { $lt: 20.0 }});
db.item.find({price: { $lte: 20.0 }});
db.item.find({price: { $gt: 30 }});
db.item.find({price: { $gte: 30 }});
db.item.find({price: { $ne: 30 }});
db.item.find({price: { $nin: [20.0, 30.0] }});
db.item.find({$and: [{name: "Item 11"}, {price: 30.0}]});
db.item.find({$or: [{name: "Item 12"}, {price: 30.0}]});
????????? Follow me on Instagram:
/ canalti_oficial
????????? Do you want to follow? Sign up - http://goo.gl/T2hIZN