more filter fixes

This commit is contained in:
2026-04-17 07:43:19 -04:00
parent c2267b68d8
commit 69bd726b25
10 changed files with 75 additions and 26 deletions

View File

@ -21,9 +21,9 @@ impl Queryer {
pub fn query(
&self,
schema_id: &str,
filters: Option<&serde_json::Value>,
filter: Option<&serde_json::Value>,
) -> crate::drop::Drop {
let filters_map = filters.and_then(|f| f.as_object());
let filters_map = filter.and_then(|f| f.as_object());
// 1. Process filters into structured $op keys and linear values
let (filter_keys, args) = match self.parse_filter_entries(filters_map) {
@ -35,7 +35,7 @@ impl Queryer {
details: crate::drop::ErrorDetails {
path: None, // filters apply to the root query
cause: Some(msg),
context: filters.cloned(),
context: filter.cloned(),
schema: Some(schema_id.to_string()),
},
}]);