Equality operator for indexed fields that store a date in timestamp format.

Will create a range query that matches every timestamp from the midnight of the selected day (included) to the midnight of the next day (excluded).

Hierarchy (view full)

Constructors

Properties

_operators: OperatorService
dateRange: InRangeDate
INPUT_PLACEHOLDER: "" = ''

Represents the placeholder "block" in operator display names.

Accessors

Methods

  • Simple implementation of query generation. Will not be suitable for all Operator derivatives.

    Escapes the first argument from the args array, calls the [query()]Operator#query function for each keyword and combines the results with an OR operator.

    Parameters

    • pfqlKeywords: string[]
    • args: Moment[]

    Returns Query

    query that wos constructed with the given arguments and keywords. Returns an empty query if no arguments are provided.

  • Creates a PFQL query with the provided arguments.

    Parameters

    • pfqlKeyword: string

      PFQL keyword for the field you want to query

    • arg: string

      The value that you want to query the property for

    • operator: string

      The PFQL operator you want to use to query the field.

    Returns string

    combines the input strings by this pattern: [pfqlKeyword] [operator] [arg]