Skip to main content

parse_map_to_bson_document

Function parse_map_to_bson_document 

Source
pub fn parse_map_to_bson_document(
    map: &ParseMap,
) -> Result<Document, ParseError>
Expand description

Lower a Parse map into a stored sub-document, applying no policy.

Verbatim, and no longer only as far as this layer can be. This note used to say that a value carrying a __type envelope had been decoded before it arrived, so an offset instant was already UTC and an extra envelope key already gone, and that the loss was an open parity gap above this function. That gap was closed: a schema body is now decoded raw, so the envelope reaches here as the client sent it and is stored that way. The claim outlived the fix.

The inverse of bson_document_to_parse_map, and the way a CLP block reaches _metadata.class_permissions without passing through the column transform: a CLP has keys like role:Admin and * that are not fields and must never be renamed or _p_-prefixed.