Meteor multi-tenant architecture options


Looking into creating a multi-tenant app with Meteor?

Luckily you’re not alone and there are quite a few options available. We suggest you try reading the following links.

Also, a code snippet is included below which can give you some inspiration on how you want to approach this design pattern.

Meteor.publish("data", function() {
 var tenantId = Meteor.users.findOne({_id: this.userId}).tenantId;
 return MyCollection.find({tenantId: tenantId}, {fields: {tenantId: 0}});