1

Could we able to build a dynamic mongo query where mongo query should process WHERE condition dynamically and retrieve the data from Mongo DB.

var query = from e in collection.AsQueryable()
                where e.FieldName1 == "XXX"  
                select e;

Here I need to pass FieldName1 as variable to filter based on user selection.

Arunmani
  • 11
  • 1

0 Answers0