Hello, so I am trying to create an app with an infrastructure somewhat like Shopify. Someone should be able to logon and create their own instance of a ‘store’. However I’m having some trouble with figuring out how to separate the MongoDB databases for each different store.
I am happy to store the contents of the store on a global database, however I want each store to have separate users as you shouldn’t be able to create an account on one store and then be able to login with that account on the other stores.
I have seen people changing the database using:
Meteor.users = new Mongo.Collection('users_new');
however that didn’t work for me. If anyone has any ideas or a better way to approach the issue it would be much appreciated. I have never done anything like this before and really do not know the best way to approach this, thanks for any help!