MongoDBb C# driver equivalent to getFieldDotted in MongoDb C++ driver?
I have used the MongoDB driver more or less in C++ only. But now I need it also in C#. For one of my functionalities I use the function "getFieldDotted" of class BSONObj to get a BSONElement is a deeper tree of the BSONObj. It seems that an equiqalent functionality does not exits in C# driver!? All tries to use an "dotted" element name result in an exception "KeyNotFoundException" even if the key exist. Any ideas?
From what I found out, there is no equivalent to the C++ driver "getFieldDotted" function. The C# driver is able to use "array indices": value=BsonDoc["Element"]["AnOtherElement"]; I used this. It is the best for my requirements accessing specific elements that are at fixed positions in the BSON object without looping or searching.
foreach item in an array find largest record using mongodbcsharp driver
Is there Document Validator available for MongoDB using C# driver?
MongoDB projection on missing field on Document
MongoDB faceted search
Mongodb c# InsertOne() - How to Handle exception
How to force serialization of decimal values inside dictionaries as doubles in mongodb csharp driver?
How do I use in $in operator using the 2.0 version of the C# mongodb driver?
What is the purpose of the MaxConnectionLifeTime setting
MongoDB C# driver throws timeout exception when trying to connect to replica set
Serialize Dictionary<long, VALUE> to BSON documents
Using a Regex against a simple list with `ElemMatch` in MongoDB .NET
projection wont work in mongodb c# driver
BsonClassMapSerializer already registered for AbstractClassSerializer
MongoDb C# Driver 2.0 Coalesce (or equivalent)?
MongoDB dynamic update of collection when changes occurs in another collection
MongoDB C# 2.0 TimeoutException