Challenge

Project 2

rakesh> db.createCollection('ecom')
{ ok: 1 }
rakesh> use ecom
switched to db ecom

ecom> db.customer.insertOne({name:"",age:"",phone:"",gmail:""})
{
acknowledged: true,
insertedId: ObjectId("64be1097fc3faad87c4ba46b")
}
ecom> db.product.insertOne({prod_name:"",categories:"",brands:"",segments:"",tags:""})
{
acknowledged: true,
insertedId: ObjectId("64be1386fc3faad87c4ba46c")
}
ecom> db.cart.insertOne({customer_id:"",product_id:"",product_name:""})
{
acknowledged: true,
insertedId: ObjectId("64be1630fc3faad87c4ba46d")
}

ecom> db.seller.insertOne({id:"01",name:"xyz",gmail:"[email protected]",phone:"0123564987",productid:"1"})
{
acknowledged: true,
insertedId: ObjectId("64be1aebfc3faad87c4ba46e")
}
ecom>

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.