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
collection.findOne({ username: /peter/i }, function (err, user) { assert(/peter/i.test(user.username)) })