`$query` should be renamed to `$pipeline` as well