Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "term"

Index

Type aliases

Term

Term: ITerm<Object>

Term type specialised for this module.

Variables

Const TYPE_AND

TYPE_AND: "and" = "and"

Const TYPE_FILTER

TYPE_FILTER: "filter" = "filter"

Const TYPE_MATCH

TYPE_MATCH: "match" = "match"

Const TYPE_MATCH_CI

TYPE_MATCH_CI: "matchci" = "matchci"

Const TYPE_OR

TYPE_OR: "or" = "or"

Object literals

Const nativeOps

nativeOps: object

nativeOps maps the supported search-filters operators to mongodb operators.

!=

!=: string = "$neq"

!in

!in: string = "$nin"

<

<: string = "$lt"

<=

<=: string = "$lte"

=

=: string = "$eq"

>

>: string = "$gt"

>=

>=: string = "$gte"

in

in: string = "$in"

Const requiredTerms

requiredTerms: object

requiredTerms all search-filters compilers must support.

and

  • and(lhs: Term, rhs: Term): Term
  • Parameters

    • lhs: Term
    • rhs: Term

    Returns Term

empty

  • empty(): Term

or

  • or(lhs: Term, rhs: Term): Term
  • Parameters

    • lhs: Term
    • rhs: Term

    Returns Term

Generated using TypeDoc