-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Querying _User via MongoDB directly. #890
Comments
try db["_User"].find() |
Since the collections start with an underscore, it's necessary to access them as @flovilmart mentioned. |
This doesn't work for me.
rs-ds023438:PRIMARY> db["_User"].find()
2016-03-08T19:45:40.479+1100 E QUERY [thread1] TypeError: db._User is undefined :
@(shell):1:1
UPDATE: use |
db.getCollection("_User").find() is what works for me. |
on a similar note, how can i edit al the acls manually via mongo db... i can see this:
and this and i know these methods: `var bulk = db._USer.initializeUnorderedBulkOp(); db.getCollection("_User").find()` but i can't put it together to make all my users have Public Read and Write access programatically via the mongoDb console. |
See mongodb documentation: https://docs.mongodb.com/manual/reference/method/db.collection.update/#update-specific-fields providing the dot noted path should work: |
It seems like in Mongo, when I do:
I can see a bunch of collections. I seem to be able to query custom classes/collections fine, but when I try to query those
_
classes, I getWhy is this?
The text was updated successfully, but these errors were encountered: