A class for transforming and parsing query expressions.

Constructors

Properties

allowedComparators: Comparator[] = []
allowedOperators: Operator[] = []

Methods

  • Parses an expression and returns the transformed operation or comparison. Throws an error if the expression cannot be parsed.

    Parameters

    • expression: string

      The expression to parse.

    Returns Promise<any>

    A Promise that resolves to the transformed operation or comparison.