Include Meteor version details in MongoDB handshake

This commit is contained in:
Alex Bevilacqua
2024-07-10 07:49:42 -04:00
committed by GitHub
parent faf04b8780
commit a18368f077

View File

@@ -191,6 +191,11 @@ MongoConnection = function (url, options) {
self._oplogHandle = null;
self._docFetcher = null;
mongoOptions.driverInfo = {
name: 'Meteor',
version: "METEOR_VERION" // TODO: however the package version needs to be included
}
self.client = new MongoDB.MongoClient(url, mongoOptions);
self.db = self.client.db();