Crate mongodb_language_model
source · [−]Expand description
mongodb-language-model
is a library for parsing the MongoDB language and
returning an abstract syntax tree using pest.rs.
Example
use mongodb_language_model::*;
let input = r#"{ "$or": [ { "status": "A" }, { "qty": { "$lt": 30 } }] }"#;
let ast = parse(input).unwrap();