What is a best practice for having a collection that I effectively want to be append only?
I’d like to record transactions into a ledger where I can insert and not update or delete (for any user, ideally).
What general recommendations are there for this scenario? I searched for existing threads, but please point me to one if this has already been discussed.
I think I would create a user and limit its permissions. I would create a custom role with the actionsfind and insert on the resources (db or collections) you need.
Thanks Maxime! I saw a discussion about limiting the actions that users can take and this approach can definitely solve the problem from a management perspective based on permissions.
Thanks for confirming!
Jeremy
PS - thanks! I built out a MongoCDC implementation last year early summer and haven’t had to dig into mongo more since then until now.