Top "Mongodb-csharp-2.0" questions

Version 2.0 of the C# driver for MongoDB.

Get All 'documents' from MongoDB 'collection'

I need to retrieve all the documents that are in my collection in MongoDB, but I cannot figure out how. …

c# .net mongodb mongodb-.net-driver mongodb-csharp-2.0
MongoDB C# Driver 2.0 - Update document

I'm currently upgrading my code to MongoDB C# driver 2.0 and I'm having issues upgrading the code to update documents. using …

c# mongodb mongodb-.net-driver mongodb-csharp-2.0
MongoDb c# driver find item in array by field value

i found the way to check is the value contains in simple array : var filter = Builders<Post>.Filter.…

c# mongodb mongodb-.net-driver mongodb-csharp-2.0
How to do findAll in the new mongo C# driver and make it synchronous

I was using official C# driver to do a FindAll and upgraded to the new driver 2.0. FindAll is obsolete and …

c# .net mongodb mongodb-.net-driver mongodb-csharp-2.0
Difference between Find and FindAsync

I am writing a very, very simple query which just gets a document from a collection according to its unique …

c# mongodb mongodb-query mongodb-csharp-2.0
Mongo C# driver - Contains Filter

I am using the latest version of Mongo C# driver which uses a lot of Async and builder pattern. Which …

c# mongodb mongodb-.net-driver mongodb-csharp-2.0
Getting a single object from mongodb in C#

I've picked up a piece of code that is using the MongoDB driver like this to get a single object …

c# .net mongodb mongodb-.net-driver mongodb-csharp-2.0
Query with filter builder on nested array using MongoDB C# driver

Consider the following object structure stored as documents: public class Foo { public string Id { get; set; } public ICollection<FooBar&…

c# mongodb mongodb-query mongodb-.net-driver mongodb-csharp-2.0
Translate FilterDefinition<TDocument> to regular json mongo query that i can run in a mongo shell

I have many complex queries that I sometimes wish to check directly against Mongo for debugging \ explaining() purposes. With the …

c# .net mongodb mongodb-.net-driver mongodb-csharp-2.0
MongoDB C# 2.0 TimeoutException

We've recently upgraded our web application to MongoDB C# Driver 2.0 and deployed to production. Below a certain load, the application …

mongodb-.net-driver timeoutexception mongodb-csharp-2.0