How do I access mongos db.system.js in meteor?

I can access it using meteor mongo, but I need to access it on the server ... How do I do this?

I tried:

Meteor.system.js.save()
db.system.js.save()
System.js.save()

      

0


source to share


1 answer


You should be able to access it via the node mongo driver directly like in this question . So for the collection system.js

, I think you are using:

// on server
var db = MongoInternals.defaultRemoteCollectionDriver.mongo.db;
var systemJS = db.collection('system.js');

      



This question shows some non-tagout code examples for the node driver.

+1


source







All Articles