I’m going through Meteor University content and getting a permission error when trying to insert data on a Mongo Collection.
Here is the code used to insert:
I’ve seen this issue many times because I believe the content for the university course was probably created before the insecure package was removed as a default package when creating a new project. You can add it manually with meteor add insecure or you can use allow or deny rules for the collection.
There is some contention on the fact that you shouldn’t use allow/deny, these rules can be done easily and properly when using things like simple schema to secure your collections. Something that if you’re using Meteor, you should probably be doing anyway.
Would they though? I feel like most have drank the Kool-Aid already, and newcomers will read through the official docs page where it says it’s considered unsafe and they’ll avoid it because that’s the official Meteor stance.