I like to to go find a user in mongoDb by looking for a user called value. The problem with:
username: \'peter\'
is that i dont find it if
You should use a regex for that.
db.users.find({name: /peter/i});
Be wary, though, that this query doesn't use index.