Adds support for $query in find operations.