Reputation: 675
I'm trying to convert the following MongoDB command into ReactiveMongo format:
db.changeUserPassword("user", "password")
There is a lot of documentation on running aggregate queries and sorting your data after running a simple command such as match, count etc.
Commands such as:
db.collection.insert()
Are easy to use in ReactiveMongo, but is there a specific way to convert more complicated commands such as:
db.grantRolesToUser()
db.createRole()
into ReactiveMongo commands?
Upvotes: 1
Views: 291
Reputation: 19527
The DBMetaCommands
trait is the ReactiveMongo API that comes the closest to what you're looking for. With this API, one can, for example, create a user with a password and roles, but I don't think there's a ReactiveMongo API that enables one to update an existing user or create a role.
Upvotes: 1