-
Notifications
You must be signed in to change notification settings - Fork 30
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
Removing by ID #12
Comments
Hmm, I just tested this myself, you are right. I also noticed that "_id" is an object itself, which has 'id' inside of it. {_id:{id:''}} which might be a problem (neither deleted it though). I assigned this problem to the guy who contributed the remove function. Idk if he is active / around. But it is definitely something that needs to be fixed. Elsewise, I just recommend (if possible) you figure out what objects to delete based off of your own attributes/properties or adding your own ID attribute. - I know that works. |
I worked out here I was going wrong: db.scripts.save({_id:1010}); They've got to be exactly the same type. What would be handy, is a remove all function - at the moment I'm having to use _id $neq -1. I'll see if I can patch it in myself. |
I take it that is via console, not via mongous? Remove all would be cool. Bah, I'm sorry. Yeah, it'd be great if you could. Thanks for the reply. |
Nah, var db = Mongous('api.scripts'); :) |
...doesn't seem to be working. I definitely have the ID correct - I set it to be an integer - but the following code fails to remove it:
Where the variable "id" is simply the ID. Any ideas?
The text was updated successfully, but these errors were encountered: