pub fn to_bson(value: &Value) -> Result<Bson, QueryError>Expand description
Convert a Value to BSON (see the module docs of
mongodb for the table).
ยงErrors
QueryError::InvalidPlan for a decimal that Decimal128 cannot hold or a
JSON number outside the 64-bit range.