Note: Idea is once the notifications gets accepted the actual entry in the Friends collection is created
I read that in Mongo for example you should just add a friends array to the user object. However according to the Discover Meteor guys embedding something that large is not a good option. That’s why I thought creating an extra friends collection is a better idea.
I have seen this package, but it is kind of difficult to understand for beginners, I haven’t seen any tutorial or guides / how-to regarding the socialize packages.
Will look through it though and I’m sure it’ll make sense.
@shibbn The optional on userId is a remnant of my misunderstanding how autovalues worked in simple-schema when I first wrote the package. It doesn’t affect anything but really should be removed just to avoid confusion.
As for the package and the socialize packages in general, they are really designed to be dead simple to use. At this point they are a bit lacking in documentation and example usage which should change as soon as I have a bit of time to update that. Pull requests for that sort of thing are also very welcome.