How do you project on fields in the new MongoDB C# drivers when the fields are given in the form of a String array ?.
I could find ways to project on a single field by doing
collection.find(filter).Project(Builders<Category>.Projection.Include(fieldName)
How do I extend this to take an array of fields ?.
Best Answer
There is also extension method
Include