According to the doc, this is how to 'Specify the Fields to Return':
collectionUsers.findOne(
options,
// Specify the Fields to Return
{ name: 1, id: 1 } // this does not work
// Return All but the Excluded Fields
// { _id: 0 } // this works
)
But it does not work as I still get _id in my result, e.g.:
{"_id":"59a53ded3a35535198135b17","id":null,"name":"jona"}
This is what I expect, e.g.:
{"id":null,"name":"jona"}
Any ideas?