0

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()
gbachik
  • 1,637
  • 3
  • 17
  • 29

1 Answers1

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 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.

Community
  • 1
  • 1
user728291
  • 4,138
  • 1
  • 23
  • 26