So, I'm a complete beginner to Meteor, and basically what is want to achieve is separate mongo collections for each user that signs up.
What I've tried so far:
MaterialData = new Mongo.Collection(Meteor.userId());
I've placed this multiple places in the js code but then I'm getting all kinds of referenceError whenever I've tried to find, update or insert data. I can't keep it global also.
What is the proper way to do this? Any better way to achieve this?