Interface FilterObject

interface FilterObject {
    condition?: FilterCondition;
    field?: string;
    fieldKey?: string;
    type?: "string" | "number" | "object" | "array";
    value?: string | number | boolean | Date;
}

Properties

condition?: FilterCondition
field?: string
fieldKey?: string

Required when the field is an array. Represents the key of objects inside the array.

type?: "string" | "number" | "object" | "array"

Specify the type of the field. Use "array" if the field is an array. When using "array", combine it with fieldKey to specify the key inside the array objects.

value?: string | number | boolean | Date