pub fn mongo_object_to_parse(doc: &Document) -> Result<ParseMap, ParseError>Expand description
mongoObjectToParseObject.
UPSTREAM-QUIRK: an unrecognised _-prefixed key raises, and it raises a bare JavaScript
string rather than a Parse.Error (MongoTransform.js:1236-1237). On the aggregate path
that surfaces to the client as code 102 with an undefined message. Reproduced here as an
error, though parse-rust cannot reproduce the undefined message without inventing one.