I have document like this:
{
"_id" : ObjectId("56ff6d54f07a36271465441c"),
"Author" : "John",
"Content" : "Thera are alot of databases",
"CreatedAtUtc" : ISODate("2016-04-02T06:57:24.542Z"),
"Tags" : [
"elasticSearch",
"MongoDb",
"C#"
],
"Title" : "Best DB"
}
I like to find all documents which have tag: "MongoDb"
I tried:
var filter = Builders<Post>.Filter.In("Tags", "MongoDb");
var posts = collection.Find(filter).ToList();
Where post is a C# class
But i get no documents. Any idea?