mongo_dart
MongoDB driver, implemented in pure Dart. All CRUD operations, aggregation pipeline and more!
0.10.9
28K downloads/mo
#1892 most downloaded on pub.dev
mongo-dart/mongo_dart
What this package is like to depend on
Last release 2 months ago
21 Jun 2026
Release timing varies
gaps range from 1 weeks to 9 months
Most releases are documented
notes for 70 of 102 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
115 releases · first in 2012
4 releases in the last 12 months
see the full history below
Release timeline
115 releases · Oct 2012 to Jun 2026Releases
latest 60 of 115-
0.10.921 Jun 2026Nothing published for this version
-
0.10.814 Feb 2026Nothing published for this version
-
0.10.707 Feb 2026Nothing published for this version
-
0.10.626 Jan 2026Nothing published for this version
-
0.10.503 May 2025Nothing published for this version
-
0.10.428 Dec 2024Nothing published for this version
-
0.10.308 Jun 2024Nothing published for this version
-
0.10.227 Apr 2024Nothing published for this version
-
0.10.122 Mar 2024Nothing published for this version
-
0.10.030 Dec 2023Nothing published for this version
-
0.9.420 Dec 2023Nothing published for this version
-
0.9.321 Sep 2023Nothing published for this version
-
0.9.216 Sep 2023Nothing published for this version
-
0.9.112 Mar 2023Nothing published for this version
-
0.9.005 Mar 2023Nothing published for this version
-
0.8.210 Dec 2022Nothing published for this version
-
0.8.119 Nov 2022Nothing published for this version
-
0.8.030 Oct 2022Nothing published for this version
-
0.8.0-1.0.beta29 Apr 2022 pre-releaseNothing published for this version
-
0.7.425 Nov 2021Nothing published for this version
-
0.7.4+110 Apr 2022Nothing published for this version
-
0.7.327 Oct 2021Release notes
Open source →- Fixed a problem in
Timestampclass so that seconds and increment were inverted in reading from db. - Decoupled the
Timestampclass from the newly createdBsonTimestampone.
- Fixed a problem in
-
0.7.205 Sep 2021Release notes
Open source →-
Added SCRAM-SHA-256 authentication mechanism If no authentication mechanism is set, as a first try the driver analyze the server response that returns the available scram mechanisms for the required user, otherwise, SCRAM-SHA-256 is set starting from release 4.0.
BREAKING CHANGE Incidentally a potential breaking change has been introduced. If there is any problem during authentication, in previous versions a map containing the error message was thrown. Now a MongoDartError object is thrown.
Please NOTE By default the driver automatically sets SCRAM-SHA-256 if the server release is equal or greater to 4.0. Unfortunately Atlas does not yet support SHA-256, and does not return informations about the supported authentication mechanisms for the user, so the driver, when detects the connection error, automatically downgrades to SHA-1 If you want to avoid the first attempt, you can set the autentication mechanism to SHA-1 in the connection string.
-
-
0.7.101 Aug 2021 -
0.7.012 Apr 2021 -
0.7.0+115 Apr 2021 -
0.7.0+224 May 2021Release notes
Open source →- Fix in README. There was a wrong example on how to call the replaceOne method.
-
0.7.0-nullsafety.301 Apr 2021 pre-release -
0.5.109 Apr 2021Nothing published for this version
-
0.5.1+112 Apr 2021Nothing published for this version
-
0.5.1-rc.130 Mar 2021 pre-releaseNothing published for this version
-
0.5.029 Mar 2021Nothing published for this version
-
0.5.0+129 Mar 2021Nothing published for this version
-
0.5.0-rc.123 Mar 2021 pre-releaseNothing published for this version
-
0.5.0-dev.414 Mar 2021 pre-release -
0.5.0-dev.328 Feb 2021 pre-releaseRelease notes
Open source →- Renamed DeleteRequest classes as DeleteStatement
- updateOne(), replaceOne() and updateMany()
- modermFindAndModify()
- bulkWrite()
- watch()
- all crud methods have been modified to call the modern version if MongoDb has a version of 3.6 or greater.
-
0.5.0-dev.218 Jan 2021 pre-release -
0.5.0-dev.113 Jan 2021 pre-releaseRelease notes
Open source →Breaking Changes
- The hidden class
_Connectionhas been renamedConnection. If you have already your own Connection class may be that they conflict. In this case, you shoul hide theConnectionclass while importing MongoDart in your sources. Ex.dart import 'package:mongo_dart/mongo_dart.dart' hide Connection;
Other Changes
- OP_MSG operations and commands. See the README file.
- Decimal128 Type (inherited from BSON enhancements)
- The hidden class
-
0.5.0-beta23 Mar 2021 pre-releaseRelease notes
Open source →- Added tls client and server certificate management
- Created method .onlyFirst() in class ModernCursor
-
0.4.430 Oct 2020Release notes
Open source →- Test for text index.
- Fix problem wit "OPENING" state in db. When a socket error happened during opening, the state was't resetted so that any new
db.open()attempt failed. - Closing a db when the connection socket was null threw error.
- Changed the way the socket error is thrown on
db.open(): All errors detected are collected.- If after all the attempts the master connection is not on, an error is thrown relative to the the first server tested. This for compatibility reason with the previous way the message was thrown.
- If the master connection is on, the errors are logged as warning.
- The socket error message has been changed to comprehend also the address of the server, so it is easier to identify the problem.
- If an authentication error occurs, the relative socket is closed.
-
0.4.304 Sep 2020Release notes
Open source →- New
isConnectedDbgetter. It returnstrueif the state of the database is open and at least the primary connection is on. - db._masterConnectionVerified() now throws an explicit error if the db state is not OPEN (it was throwing a
NoSuchMethodError).
- New
-
0.4.224 Aug 2020Release notes
Open source →- New
Dbconstructor (Db.create()) that accepts also the url in DNS Seedlist Connection Format (mongodb+srv://)
- New
-
0.4.119 Aug 2020Release notes
Open source →- Secure Connection
- The connection string now accepts more than one server.
- Before: only mongodb://www.example.org/test.
- Now it can be: mongodb://www.example.org,www1.example.org,www2.example.org/test
- It is equivalent to: db.pool([mongodb://www.example.org/test, mongodb://www1.example.org/test, mongodb://www2.example.org/test]);
- Added an "uriList" getter in "Db" class.
-
0.4.1-dev.2.203 Aug 2020 pre-release -
0.4.007 Nov 2019Nothing published for this version
-
0.4.0-dev.130 Sep 2019 pre-releaseRelease notes
Open source →- Upgraded to
mongo_dart_query0.4.1. The update adds aggregation pipeline builder.
- Upgraded to
-
0.3.617 Sep 2019Release notes
Open source →- Updates for Dart 2.5 compatibility. As of Dart 2.5, the
Socketclass emitsUint8List, rather than plainList<int>, so some fixes were necessary to allow the package to continue to function.- Courtesy of @a14n, thank you!
- Resolves https://github.com/mongo-dart/mongo_dart/issues/160, among other issues.
- Updates for Dart 2.5 compatibility. As of Dart 2.5, the
-
0.3.517 Apr 2019 -
0.3.419 Dec 2018Release notes
Open source →- Added
cursoroption toDbCollection.aggregate.- Courtesy of @jodinathan, thank you!
- Resolves https://github.com/mongo-dart/mongo_dart/issues/120
- See PR: https://github.com/mongo-dart/mongo_dart/pull/139
- Added "Tobe O" to authors in
pubspec.yaml.
- Added
-
0.3.328 Jul 2018Nothing published for this version
-
0.3.230 Jun 2018Release notes
Open source →- Cast fixes, for compatibility with Dart 2.
- Moved from
dart:convertusage topackage:dart2_constant, for the sake of backwards compatibility.
-
0.3.124 Oct 2017Release notes
Open source →- Changed the signature of
DbCollection.remove; itsselectorparameter is now required, whilewriteConcernis now a named optional parameter.
Future remove(selector, {WriteConcern writeConcern});Resolves #73.
- Changed the signature of
-
0.3.023 Jul 2017 -
0.2.1004 Oct 2016Nothing published for this version
-
0.2.915 Jul 2016Nothing published for this version
-
0.2.824 Jun 2016 -
0.2.710 Jun 2016Release notes
Open source →- Minor changes, commented out code removed
- Big chunk of tests was commented out in 0.2.6 by error. All tests restored.
-
0.2.606 Jun 2016Release notes
Open source →- update for new sdk (with 1.17.0 [MongoMessageHandler] was broken in checked mode)
- upgrade to current version of
cryptopackage, and it's new (Converter based) API
-
0.2.512 Feb 2016Release notes
Open source →- Moved mongo_dart project to a new organization on GitHub.
- Authentication schemes now use Secure Random coming from
dart:mathsince 1.14. Note that this version now required SDK version >= 1.14 because of this - Added sort by text score to the query builders.
-
0.2.5+112 Feb 2016