I am looking for the best way to assign multiple Meteor.User accounts to a single doc, which from here we will call a “Group”. I would like to be able to assign just a userId so I only have to update their data in 1 spot. I am looking for patterns that would allow me to select who is in a group and what groups a user belongs.
I currently am approaching this in 2 ways. The 1st one I am assigning the user a role that would mean they are in a specific group. Then I also have an array of userIds and attempt some sort of $in query on that. The role part seems to be working great, but I am seeing alot of random errors when using $in. Though that might be cause I am using the latest Mongo (3.x?).