Hello,
Please help me, how to dynamically switch mongoDB from running meteor APP? I have two database one for production and another for development.so i would like to make switching in between during the running mode of the application.
Hello,
Please help me, how to dynamically switch mongoDB from running meteor APP? I have two database one for production and another for development.so i would like to make switching in between during the running mode of the application.
Good question. I am also interested in the answer of this questions.
const database = new MongoInternals.RemoteCollectionDriver("mongodb://hostname:port/database");
const MyNewCollection = new Mongo.Collection('mycollection', { _driver: database });
Thanks robfallows , But I want to change database during run type. Like application has switch with On/Off
On =Development DB
Off = Production DB
Also need collection reactivity.