Is there a way to convert the Mongo database as readonly on the primary node and on all other secondary nodes?
Like in SQL Server, we can alter database like this:
alter database set readonly
There could be 2 ways to achieve this.
Connecting to secondary directly instead of primary, not as part of the replica set, then it will behave as read only access.
Or turn on authentication and create read-only users.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With