Answers for "Query mongodb collection as dynamic"

C#
0

Query mongodb collection as dynamic

# You can use the string-based syntax, since the expression doesn't offer any advantages with dynamic anyway:

var cursor = db.GetCollection<dynamic>("foo")
               .Find(Builders<dynamic>.Filter.Eq("_id", someId));
Posted by: Guest on October-19-2021

C# Answers by Framework

Browse Popular Code Answers by Language