Mongodb V 4.0
I want to restrict a user's role by only allowing new inserts to the collection. Either as a new document, or as an append to the document. I don't want the user to be able to update(overwrite) fields in the document, but update/(append/add) is fine. Is there any good strategies out there for this. My two options now are:
Create two collections. Restrict one and allow full updates in the other, once all updates are complete copy/move the document from one collection over to the other.
Alternative 2) limit roles to update.$push operator only, which is a type of append to array operator. I have not found a way to do that as of now.