I hav a collection but not working this query


i have a collection and i want to return only one field of collection from that query but it is returning all fields of collection my query is just like that

return Customers.find({}, {
“CustomerName”: 1





just a small syntax issue - you have to specifiy fields in the option argument

Customers.find({}, {fields: {'CustomerName':1}});


thank you very much it is working now