not support in queries
parent
1a86c5b326
commit
62d55e11ff
|
@ -25,6 +25,9 @@ export function evalQueryExpression(
|
||||||
// Value types
|
// Value types
|
||||||
case "null":
|
case "null":
|
||||||
return null;
|
return null;
|
||||||
|
// TODO: Add this to the actualy query syntax
|
||||||
|
case "not":
|
||||||
|
return !evalQueryExpression(op1, obj, functionMap);
|
||||||
case "number":
|
case "number":
|
||||||
case "string":
|
case "string":
|
||||||
case "boolean":
|
case "boolean":
|
||||||
|
|
|
@ -97,6 +97,7 @@ export type QueryExpression =
|
||||||
| ["string", string]
|
| ["string", string]
|
||||||
| ["boolean", boolean]
|
| ["boolean", boolean]
|
||||||
| ["null"]
|
| ["null"]
|
||||||
|
| ["not", QueryExpression]
|
||||||
| ["array", QueryExpression[]]
|
| ["array", QueryExpression[]]
|
||||||
| ["object", Record<string, any>]
|
| ["object", Record<string, any>]
|
||||||
| ["regexp", string, string] // regex, modifier
|
| ["regexp", string, string] // regex, modifier
|
||||||
|
@ -145,4 +146,4 @@ export type UploadFile = {
|
||||||
name: string;
|
name: string;
|
||||||
contentType: string;
|
contentType: string;
|
||||||
content: Uint8Array;
|
content: Uint8Array;
|
||||||
}
|
};
|
||||||
|
|
Loading…
Reference in New Issue