Hi I have been using “MongoDB Ruby Driver” which you can find more information about here https://github.com/mongodb/mongo-ruby-driver.
I am trying get a list of users using the code example “client.database.users” from
However I end up with a “Mongo::Auth::User::View” class as a return.
There is no document about what “Mongo::Auth::User::View” is and how to use it to get list of users. I can add, edit. update, and delete user however I can not get a lost if users to display.
There is no getUsers or getRoles methods.
To make this short how can I use “MongoDB Ruby Driver” to get a list of users for a database? This has been my final struggle.
If any one know how to to do this in ruby it will be greatly appreciated. It can be different gem I wouldn’t mind switching as long as its ruby.