I developed a web app using meteor.js and I can view my users on my command prompt, but how do I delete users?
I tried
meteor mongo myapp.meteor.com
db.users.remove({_id:<user id>});
but I got an error
SyntaxError: Unexpected token <
I tried it without the <>
but I also got an error
SyntaxError: Unexpected token ILLEGAL
Then, I tried
db.users.remove('USER_ID');
but I got this error -_-
SyntaxError: Unexpected token ILLEGAL
Could anyone give me any guidance? And just out of curiosity, is there a website where I can view my MongoDB for my meteor web app and delete users from there?
Aucun commentaire:
Enregistrer un commentaire