- 
    Type:
New Feature
 - 
    Resolution: Unresolved
 - 
    Priority:
Major - P3
 - 
    None
 - 
    Affects Version/s: None
 - 
    Component/s: None
 
- 
        Query Execution
 - 
        None
 
- 
        None
 - 
        None
 - 
        None
 - 
        None
 - 
        None
 - 
        None
 
It would be useful, in tandem with planned hashing functionality, to be able to transform arbitrary objects in aggregation to their BSON representation.
It would work something like this:
{ $convert: {
    input: { foo: "bar" },
    to: "binData",
    format: "bson",
}}
- is related to
 - 
                    
SERVER-107540 Allow users to generate a hex-encoded MD5 hash from a UTF-8 string
-         
 - Open
 
 -