pub fn transform_where(
schema: &ClassSchema,
query: &Query,
) -> Result<Document, ParseError>Expand description
transformWhere: lower a query tree into a Mongo filter document.
Every sub-query of a logical clause is lowered with the same schema, so _p_ prefixing and
objectId -> _id apply inside a branch exactly as they do at the top level
(MongoTransform.js:290-296).