Skip to content Skip to sidebar Skip to footer

How Do I Access Mongos Db.system.js In Meteor?

I can access it fine using meteor mongo but I need access to it on the server... How do I do that? I've tried: Meteor.system.js.save() db.system.js.save() System.js.save()

Solution 1:

You should be able to access it through the node mongo driver directly as in this question. So for the system.js collection I think you use:

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

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

Post a Comment for "How Do I Access Mongos Db.system.js In Meteor?"