gridify-client v2.0.2
Added Custom Operator Support
-
Feature: You can now add custom operators in the
addCondition
method by passing a string that starts with#
.- This allows greater flexibility and extensibility in filtering logic by enabling custom operators in addition to the predefined
ConditionalOperator
enum. - Example usage:
const query = new GridifyQueryBuilder() .addCondition("age", "#=", 30) .build();
- Custom operators must start with the
#
character to distinguish them from built-in operators.
- This allows greater flexibility and extensibility in filtering logic by enabling custom operators in addition to the predefined
-
Validation: Added validation to ensure that custom operators must begin with
#
. An error will be thrown if the custom operator does not follow this convention.