Skip to main content

mongo_object_to_parse

Function mongo_object_to_parse 

Source
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.