MongoDB Practical Assignment
MongoDB Practical Assignment
Output:
3. Display all the documents from Employee collection
→
Query:
db.employee.find();
Output:
Output:
[
{
"_id": {
"$oid": "657463d5882bb59f49af932e"
},
"eno": 9,
"ename": "Akash Sunthaval",
"salary": 70000,
"desig": "Developer",
"dept": {
"deptno": 111,
"deptname": "IT",
"location": "Pune"
},
"project": {
"pname": "artmantis",
"hrs": 20
}
},
{
"_id": {
"$oid": "657463d5882bb59f49af932f"
},
"eno": 10,
"ename": "Vikas Wani",
"salary": 60000,
"desig": "Developer",
"dept": {
"deptno": 111,
"deptname": "IT",
"location": "Pune"
},
"project": {
"pname": "artmantis",
"hrs": 20
}
}
]