jmikola/mongoqp — pull request #6 by tahajahangir (2013-04-27 11:02:22+00:00)
Title: Expand important objects inside query

With new versions of mongo, `query` commands may include `query` objects, with `$query` key, that real query fields stored in `$query`.

Also, query command may include `$order_by`, which is also a part of query, and is important in query plan.

Also `findAndModify` command includes `query` and `sort` keys.

So, expand these four special keys in any case (not only when they have a $op).