pub fn transform_update(
schema: &ClassSchema,
update: &Update,
) -> Result<Document, ParseError>Expand description
transformUpdate: lower an update AST into a Mongo update document.
The operator mapping is transformUpdateOperator (MongoTransform.js:974-1033). Note the
asymmetry between Add/AddUnique, which wrap their values in $each, and Remove, which
does not: $pullAll takes a bare array.