Hello Everyone,
Not sure I am understanding correctly how mongodb on client works - how to remove a collection when logging out only on the client side.
I assume the following:
-
When i subscribe to a collection from the server side, the client side creates a mini mongo collection with the same name automatically.
-
i am able to access the newly created client side collection within my template (so far so good).
-
on logout i call: collectionName.remove( Meteor.userId() );
I get an error saying: “remove failed: Access denied”
How do i correctly remove the collection on the client side when logging out?