Range 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 first day (included) to the midnight of the day after the second day (excluded).

Hierarchy (view full)

Constructors

Properties

INPUT_PLACEHOLDER: "" = ''

Represents the placeholder "block" in operator display names.

Accessors

Methods

  • Creates a query as specified by the [classes]InRangeDate documentation. See [super.createQuery()]Operator#createQuery for more information.

    Parameters

    • pfqlKeywords: string[]

      keywords of the fields that should be queried. If more than one is provided then queries for every keyword will be generated and combined with an OR operator.

    • args: Moment[]

      start and end date for the range. Any time information will be ignored use InRangeDateTime if you want a date time query instead. The two dates must be in ascending order, if not the behavior is undefined.

    Returns Query

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