So this is Day 3 of learning Mongo Db. I\'m coming from the MySql universe...
A lot of times when I need to write a query for a MySql table I\'m unfamiliar with, I woul
Type the below query in editor / mongoshell
var col_list= db.emp.findOne(); for (var col in col_list) { print (col) ; }
output will give you name of columns in collection :
_id name salary