A class for transforming and parsing query expressions.

Hierarchy

  • QueryTransformer

Constructors

Properties

Methods

Constructors

  • Parameters

    Returns QueryTransformer

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<Operation | Comparison>

    A Promise that resolves to the transformed operation or comparison.

Generated using TypeDoc