use mongors::*; use bsonrs::doc; fn main() { let client = Mongo::new("mongodb://localhost:27017/").unwrap(); let cmd = doc!{ "dbStats": 1 }; let col = client.db("test").collection("test"); let reply = col.command(cmd, None, None); println!("{:?}", reply); }