It looks like a query to run in the mongo-shell, as it's Javascript. Am I right?
And the parameters for `update` change in mongo-shell 2.2: http://docs.mongodb.org/manual/reference/method/db.collection.update/