Top "Mongodb-.net-driver" questions

The official MongoDB .NET Driver provides asynchronous interaction with MongoDB.

Redirect output of mongo query to a csv file

I am using MongoDB 2.2.2 for 32-bit Windows7 machine. I have a complex aggregation query in a .js file. I need …

mongodb mongodb-.net-driver mongodb-query
How to get the Mongo database specified in connection string in C#

I would like to connect to the database specified in the connection string, without specifying it again in GetDatabase. For …

c# mongodb mongodb-.net-driver
Truncate a collection

How do I truncate a collection in MongoDB or is there such a thing? Right now I have to delete 6 …

mongodb mongodb-.net-driver
How to replace substring in mongodb document

I have a lot of mongodb documents in a collection of the form: { .... "URL":"www.abc.com/helloWorldt/..." ..... } I want …

mongodb mongodb-.net-driver mongo-shell mongodb-update
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 GridFs with C#, how to store files such as images?

I'm developing a web app with mongodb as my back-end. I'd like to have users upload pictures to their profiles …

c# .net mongodb mongodb-.net-driver gridfs
Upserting in Mongo DB using official C# driver

In the official documentation of mongodb they mention upserts, so it would be really nice to write an upsert command …

c# mongodb mongodb-.net-driver
How to find min value in mongodb

How do you do the equivalent of SELECT MIN(Id) AS MinId FROM Table with MongoDB? It looks like I …

mongodb mongodb-.net-driver
How to insert data into a mongodb collection using the c# 2.0 driver?

I'm using the MongoClient in my c# console application to connect to MongoDB https://github.com/mongodb/mongo-csharp-driver/releases/tag/…

c# .net mongodb mongodb-.net-driver
How to deserialize a BsonDocument object back to class

How do I deserialize a BsonDocument object back to the class after getting it from the server? QueryDocument _document = new …

c# mongodb mongodb-.net-driver