I am using pymongo . I need to run db.getUsers() in pymongo. Is there any documentations to do so. I only saw the pymongo commands . There doesn’t seems to run mongoshell commands using pymongo and retrieve data
If any one know please post me
I am using pymongo . I need to run db.getUsers() in pymongo. Is there any documentations to do so. I only saw the pymongo commands . There doesn’t seems to run mongoshell commands using pymongo and retrieve data
If any one know please post me
2
Answers
Now I got the user and credentials into a dict as follows,
And the data have the following,
The next question is how can I restore this data into System.users
This is the Boiler Plate code for connecting Pymongo with Mongodb and doing basic operation