Mongodb – How to make a field read-only in a `mongoengine` Document while allowing conditional updates?
I have a mongoengine document such as: from mongoengine.document import Document from mongoengine import StringField class Class_A(Document): field_a = StringField() field_b = StringField() I'd like to lock field_b so it cannot be altered, e.g. var = <fetch Class_a document from…