Document a way to access the Node Mongo driver #3640
Thanks for the feature request! You might be interested in reading our feature request guidelines.
This is a subset of a frequently requested feature, which is direct access to all the various Mongo APIs that don't have special Meteor behavior. I think we should actually do this finally.
We should provide access to:
That said, people using this should be aware that future upgrades may replace the module with a backward-incompatible version. (This would probably be a major version bump for the
Specifically, Mongo.Collection objects on the server now have rawCollection and rawDatabase methods. You can use MongoInternals.NpmModules.mongodb.version to tell what version of the mongodb npm module is the backend for HTTP.call. This version may change incompatibly from version to version of Meteor; use at your own risk. (For example, we expect to upgrade from the 1.4.x series to the 2.x series in the not-too-distant future.) Fixes #3640.
Do I understand that the resolution is to use https://github.com/peerlibrary/meteor-directcollection
I'm really hoping to be able to write something like:
this would be super useful to me. The above library seams to expect fibers style code, and I've got a lot of code I'd like to reuse that uses callbacks.