> `"{$gt:10}".toBson`

This is string, not bson embedded object, what you need is
    
    
    let query = %{
        "temp": {
            "$gt": 10
        }
    }
    
    
    Run

Reply via email to