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