Closed paulobreim closed 1 year ago
How do I do a find and bring only a few fields. I tried for example:
await mycoll.find({name: 1,email:1}).toList(); or like mongosh await mycoll.find({},{email:1}) but dos not works
the fields parameter no longer exists
tks
https://github.com/mongo-dart/mongo_dart#find
Thank you, i made it and works
var result = await collection.find(where.fields(['field1'])).toList();
De Nada
How do I do a find and bring only a few fields. I tried for example:
await mycoll.find({name: 1,email:1}).toList(); or like mongosh await mycoll.find({},{email:1}) but dos not works
the fields parameter no longer exists
tks