MongoDB.Driver 3.5.0

MongoDB C# Driver

MongoDB.Driver Documentation Documentation License

The official MongoDB .NET/C# driver.

The MongoDB .NET/C# driver follows semantic versioning since v3.0.0 of its releases.

Getting Started

Untyped Documents

using MongoDB.Bson;
using MongoDB.Driver;
var client = new MongoClient("mongodb://localhost:27017");
var database = client.GetDatabase("foo");
var collection = database.GetCollection<BsonDocument>("bar");

await collection.InsertOneAsync(new BsonDocument("Name", "Jack"));

var list = await collection.Find(new BsonDocument("Name", "Jack"))
    .ToListAsync();

foreach(var document in list)
{
    Console.WriteLine(document["Name"]);
}

Typed Documents

using MongoDB.Bson;
using MongoDB.Driver;
public class Person
{
    public ObjectId Id { get; set; }
    public string Name { get; set; }
}
var client = new MongoClient("mongodb://localhost:27017");
var database = client.GetDatabase("foo");
var collection = database.GetCollection<Person>("bar");

await collection.InsertOneAsync(new Person { Name = "Jack" });

var list = await collection.Find(x => x.Name == "Jack")
    .ToListAsync();

foreach(var person in list)
{
    Console.WriteLine(person.Name);
}

Documentation

Questions/Bug Reports

If you’ve identified a security vulnerability in a driver or any other MongoDB project, please report it according to the instructions here.

Contributing

Please see our guidelines for contributing to the driver.

Thank you to everyone who has contributed to this project.

Showing the top 20 packages that depend on MongoDB.Driver.

Packages Downloads
MassTransit.MongoDb
MassTransit MongoDb persistence support; MassTransit is a message-based distributed application framework for .NET http://masstransit-project.com
74
HotChocolate.Data.MongoDb
Contains extensions for seamless integration of MongoDb into the HotChocolate.Data package
70
MassTransit.MongoDb
MassTransit MongoDb persistence support; MassTransit is a message-based distributed application framework for .NET http://masstransit-project.com
67
HotChocolate.Data.MongoDb
Contains extensions for seamless integration of MongoDb into the HotChocolate.Data package
66
MassTransit.MongoDb
MassTransit MongoDb persistence support; MassTransit is a message-based distributed application framework for .NET http://masstransit-project.com
66
MassTransit.MongoDb
MassTransit MongoDb support; MassTransit is a message-based distributed application framework for .NET http://masstransit-project.com
65
MassTransit.MongoDb
MassTransit MongoDb persistence support; MassTransit is a message-based distributed application framework for .NET http://masstransit-project.com
65
MassTransit.MongoDb
MassTransit MongoDb persistence support; MassTransit is a message-based distributed application framework for .NET http://masstransit-project.com
64
MongoDB.Driver.GridFS
GridFS Component of the Official MongoDB .NET Driver.
63
MassTransit.MongoDb
MassTransit MongoDb persistence support; MassTransit is a message-based distributed application framework for .NET http://masstransit-project.com
63
HotChocolate.Data.MongoDb
Contains extensions for seamless integration of MongoDb into the HotChocolate.Data package
63
MassTransit.MongoDb
MassTransit MongoDb persistence support; MassTransit is a message-based distributed application framework for .NET http://masstransit-project.com
62
HotChocolate.Data.MongoDb
Contains extensions for seamless integration of MongoDb into the HotChocolate.Data package
62
MassTransit.MongoDb
MassTransit MongoDb support; MassTransit is a message-based distributed application framework for .NET http://masstransit-project.com
62

https://github.com/mongodb/mongo-csharp-driver/releases/tag/v3.5.0

Version Downloads Last updated
3.5.2 2 11/29/2025
3.5.1 8 11/21/2025
3.5.0 10 09/16/2025
3.4.3 14 08/19/2025
3.4.2 9 07/28/2025
3.4.1 14 07/20/2025
3.4.0 29 05/04/2025
3.3.0 35 03/28/2025
3.2.1 36 02/22/2025
3.2.0 26 02/26/2025
3.1.0 33 12/08/2024
3.0.0 40 10/20/2024
2.30.0 43 10/16/2024
2.29.0 43 09/19/2024
2.28.0 47 07/23/2024
2.27.0 45 07/06/2024
2.26.0 42 06/19/2024
2.25.0 57 04/14/2024
2.24.0 56 03/01/2024
2.23.2 49 03/01/2024
2.23.1 47 01/07/2024
2.23.0 50 01/09/2024
2.22.0 64 10/19/2023
2.21.0 60 08/11/2023
2.20.0 58 06/23/2023
2.19.2 63 05/29/2023
2.19.1 60 05/23/2023
2.19.0 59 07/17/2023
2.18.0 64 02/07/2023
2.17.1 57 07/23/2023
2.17.0 50 07/25/2023
2.16.1 56 06/22/2022
2.16.0 56 07/28/2022
2.15.1 56 07/19/2023
2.15.0 55 07/25/2023
2.14.1 55 07/26/2023
2.14.0 53 07/23/2023
2.14.0-beta1 55 07/22/2023
2.13.3 54 08/09/2023
2.13.2 46 07/19/2023
2.13.1 57 07/23/2023
2.13.0 60 07/30/2023
2.13.0-beta1 55 07/19/2023
2.12.5 49 07/22/2023
2.12.4 64 07/05/2023
2.12.3 54 07/20/2023
2.12.2 51 08/11/2023
2.12.1 54 07/21/2023
2.12.0 51 07/21/2023
2.12.0-beta1 52 07/23/2023
2.11.6 44 07/24/2023
2.11.5 58 07/18/2023
2.11.4 57 07/19/2023
2.11.3 52 08/09/2023
2.11.2 61 07/18/2023
2.11.1 51 07/20/2023
2.11.0 62 07/19/2023
2.11.0-beta2 45 07/23/2023
2.11.0-beta1 51 07/19/2023
2.10.4 60 07/23/2023
2.10.3 54 07/06/2023
2.10.2 58 07/22/2023
2.10.1 61 06/29/2023
2.10.0 55 06/22/2022
2.10.0-beta1 58 07/18/2023
2.9.3 61 07/23/2023
2.9.2 55 07/19/2023
2.9.1 60 07/18/2023
2.9.0 63 07/20/2023
2.9.0-beta2 53 07/22/2023
2.9.0-beta1 66 07/05/2023
2.8.1 60 07/15/2023
2.8.0 62 07/23/2023
2.7.3 52 05/24/2023
2.7.2 54 07/02/2023
2.7.1 53 07/23/2023
2.7.0 84 07/12/2023
2.7.0-beta0001 59 07/22/2023
2.6.1 67 07/04/2023
2.6.0 62 07/14/2023
2.5.1 49 07/17/2023
2.5.0 61 07/18/2023
2.4.4 56 07/22/2023
2.4.3 65 08/15/2023
2.4.2 50 07/13/2023
2.4.1 53 07/21/2023
2.4.0 60 07/25/2023
2.4.0-beta1 103 09/06/2023
2.3.0 55 07/24/2023
2.3.0-rc1 58 07/23/2023
2.3.0-beta1 58 07/16/2023
2.2.4 63 07/23/2023
2.2.3 63 07/22/2023
2.2.2 54 06/04/2023
2.2.1 54 07/23/2023
2.2.0 57 07/20/2023
2.2.0-rc0 60 08/11/2023
2.1.1 61 04/28/2023
2.1.0 63 07/17/2023
2.1.0-rc1 58 08/11/2023
2.1.0-rc0 49 08/10/2023
2.0.2 55 07/19/2023
2.0.1 51 08/19/2023
2.0.0 52 07/23/2023
2.0.0-rc0 60 07/22/2023
2.0.0-beta4 55 07/21/2023
2.0.0-beta3 60 07/21/2023
2.0.0-beta2 57 07/25/2023
2.0.0-beta1 52 07/19/2023