Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StrFilter<T>

A filter which work with strings

Type parameters

Hierarchy

  • StrFilter

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new StrFilter<T>(path: string, filter: Filter<Document<T>>, expr: Record<string, unknown>): StrFilter<T>

Properties

Protected Readonly expr

expr: Record<string, unknown>

Protected Readonly filter

filter: Filter<Document<T>>

Protected Readonly path

path: string

Accessors

length

Methods

compare

  • compare(operator: "$eq" | "$ne", str: string): Match<T>
  • Filter if the comparison returns true

    Parameters

    • operator: "$eq" | "$ne"
    • str: string

    Returns Match<T>

equal

  • equal(str: string): Match<T>

match

  • match(regex: RegExp): Match<T>

notEqual

  • notEqual(str: string): Match<T>

Generated using TypeDoc