Today I will show you how to create a user with access to only one collection in a specific database in mongodb.
Step 1. Create a new role.
db.createRole( {…