File tree Expand file tree Collapse file tree 3 files changed +22
-29
lines changed
content/docs/references/ui/analytics
packages/spec/json-schema Expand file tree Collapse file tree 3 files changed +22
-29
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,5 @@ description: Report Schema Reference
1515| ** columns** | ` object[] ` | ✅ | Columns to display |
1616| ** groupingsDown** | ` object[] ` | optional | Row groupings |
1717| ** groupingsAcross** | ` object[] ` | optional | Column groupings (Matrix only) |
18- | ** filter** | ` string ` | optional | Filter logic (e.g. "1 AND (2 OR 3)") |
19- | ** filterItems** | ` object[] ` | optional | Filter criteria lines |
18+ | ** filter** | ` any ` | optional | Filter criteria |
2019| ** chart** | ` object ` | optional | Embedded chart configuration |
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ async function main() {
5959 console . log ( '\n🧠 Testing Advanced Query (Select & Modern Filter)...' ) ;
6060 const advancedResult = await client . data . find ( 'todo_task' , {
6161 select : [ 'subject' , 'priority' ] ,
62- where : {
62+ filters : {
6363 priority : { $gte : 2 } // Modern MongoDB-style filter syntax
6464 } ,
6565 sort : [ '-priority' ]
Original file line number Diff line number Diff line change 137137 "description" : " Column groupings (Matrix only)"
138138 },
139139 "filter" : {
140- "type" : " string" ,
141- "description" : " Filter logic (e.g. \" 1 AND (2 OR 3)\" )"
142- },
143- "filterItems" : {
144- "type" : " array" ,
145- "items" : {
146- "type" : " object" ,
147- "properties" : {
148- "id" : {
149- "type" : " number"
150- },
151- "field" : {
152- "type" : " string"
153- },
154- "operator" : {
155- "type" : " string"
156- },
157- "value" : {}
140+ "allOf" : [
141+ {
142+ "type" : " object" ,
143+ "additionalProperties" : {}
158144 },
159- "required" : [
160- " id" ,
161- " field" ,
162- " operator"
163- ],
164- "additionalProperties" : false
165- },
166- "description" : " Filter criteria lines"
145+ {
146+ "type" : " object" ,
147+ "properties" : {
148+ "$and" : {
149+ "type" : " array" ,
150+ "items" : {}
151+ },
152+ "$or" : {
153+ "type" : " array" ,
154+ "items" : {}
155+ },
156+ "$not" : {}
157+ }
158+ }
159+ ],
160+ "description" : " Filter criteria"
167161 },
168162 "chart" : {
169163 "type" : " object" ,
You can’t perform that action at this time.
0 commit comments