I have been looking into this problem for a long time. google Baidu’s method is to add users to admin first! But I still can’t get through it on my side!
Hope to solve!
It is. First, create a general database administrator.
Then create an administrator who has all the permissions to a certain database, mongoose logs in with this account and operates on the corresponding database.
If the permissions are more complex, create some accounts with different permissions, such as read-only, writable, etc.