Skip to content

gridify-client v2.0.2

Compare
Choose a tag to compare
@alirezanet alirezanet released this 30 Sep 08:45
· 16 commits to master since this release
0e8645c

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.
  • 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.