I'm new to MongoDB. Just wondering:
How do I convert this shell command to ruby?
db.unicorns.find(null, {name: 1, _id:0});
This gives me an error:
db.collection("unicorns").find(nil, :fields=>["name","_id"=>0])
If you have any tutorial resources as well, would appreciate :).