Skip to main content

parse_object_to_mongo_create

Function parse_object_to_mongo_create 

Source
pub fn parse_object_to_mongo_create(
    schema: &ClassSchema,
    object: &ParseMap,
) -> Result<Document, ParseError>
Expand description

parseObjectToMongoObjectForCreate.

Two behaviors that are easy to miss and both wire-visible:

  • Relation values are skipped entirely (MongoTransform.js:468-470). A Relation lives in a join table, not on the object, so a {__type:"Relation"} value in a create body is dropped rather than stored or rejected.
  • ACL becomes three columns: _rperm, _wperm, and the legacy _acl mirror.