Created
April 22, 2020 22:29
-
-
Save gdhuper/08316053695eed8a65506945f183e3d6 to your computer and use it in GitHub Desktop.
cosmos-rust-getting-started-main-read
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// document key to filter on | |
let doc_filter = doc! {"title": "Pay AmeX bill"}; | |
let read_doc = mongo_client.read(doc_filter); | |
if let Ok(doc) = read_doc { | |
println!("{:?}", doc.unwrap()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment