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()
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()
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 server
var db = MongoInternals.defaultRemoteCollectionDriver.mongo.db;
var systemJS = db.collection('system.js');
This question shows some non-meteor examples of code for the node driver.