Grant roles to mongo users with via rails

I am trying to assign the role to mongo user through rails controller. I know that we can assign role to user as mentioned here, but there we need to update the whole user.So is there any way to run query similar to grantRole directly through the rails controller?