Mongodb Database view
I want to omit the _id field in my result
_id
MongoClient.connect(\"mongodb://localhost:27017/\",function(err,client)
In version 3.4.9 of the mongodb you can simply achieve this by:
3.4.9
db.getCollection('data').find({}, { _id: 0 })