Skip to content

ab180/mongoquery-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mongoquery-rs

An incomplete Rust port of Python's mongoquery library.


Example

use mongoquery::{BaseQuerier, Querier};
use serde_json::{Value, json};

let object = json!({
    "item": "journal",
    "qty": 25,
    "size": { "h": 14, "w": 21, "uom": "cm" },
    "status": "A"
});
let querier = BaseQuerier::new(&json!({ "item": "journal"}));

assert!(querier.evaluate(Some(&object)).unwrap());

Releases

No releases published

Packages

No packages published

Languages