Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BoolFilter<T>

A filter which work with booleans

Type parameters

Hierarchy

  • BoolFilter

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

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

Properties

Protected Readonly expr

expr: Record<string, unknown>

Protected Readonly filter

filter: Filter<Document<T>>

Protected Readonly path

path: string

Accessors

falsy

truthy

Methods

compare

  • compare(bool: boolean): Match<T>
  • Filter if the comparison returns true

    Parameters

    • bool: boolean

    Returns Match<T>

Generated using TypeDoc