Options
All
  • Public
  • Public/Protected
  • All
Menu

Allows for the building of RSQLFilterExpressions in a readable way.

example

let builder: RSQLFilter = new RSQLFilterBuilder(); let list = builder.column('blah').equalTo('123').toList(); let queryStringPart = list.build(); // returns blah=="123"

example

let rsql: RSQLCriteria = new RSQLCriteria(); let builder: RSQLFilter = new RSQLFilterBuilder(); rsql.filters.and(builder.column('blah').equalTo('123') .or().column('test').equalTo('456').toList()); rsql.build(); // returns $where=(blah=="123" or test=="456")

Hierarchy

  • RSQLFilterBuilder

Implements

Index

Constructors

constructor

Properties

Private columnName

columnName: string

Private connector

connector: "and" | "or" = "and"

Private filters

filters: RSQLFilterList = new RSQLFilterList()

Methods

Private addToList

and

clear

  • clear(): void

column

contains

custom

doesNotContain

endsWith

equalTo

greaterThan

greaterThanOrEqualTo

group

in

isEmpty

isNotEmpty

isNotNull

isNull

lessThan

lessThanOrEqualTo

like

notEqualTo

notIn

or

startsWith

toList

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc