Options
All
  • Public
  • Public/Protected
  • All
Menu

Main class for bringing together API filtering, sorting and pagination.

Hierarchy

  • RSQLCriteria

Index

Constructors

constructor

  • new RSQLCriteria(whereKeyword?: string, orderByKeyword?: string, pageSizeKeyword?: string, includeTotalCountKeyword?: string, pageNumberKeyword?: string): RSQLCriteria
  • Parameters

    • Default value whereKeyword: string = "$where"
    • Default value orderByKeyword: string = "$orderBy"
    • Default value pageSizeKeyword: string = "$pageSize"
    • Default value includeTotalCountKeyword: string = "$includeTotalCount"
    • Default value pageNumberKeyword: string = "$pageNumber"

    Returns RSQLCriteria

Properties

filters

includeTotalCount

includeTotalCount: boolean = true

Private includeTotalCountKeyword

includeTotalCountKeyword: string

orderBy

Private orderByKeyword

orderByKeyword: string

Optional pageNumber

pageNumber: undefined | number

Private pageNumberKeyword

pageNumberKeyword: string

Optional pageSize

pageSize: undefined | number

Private pageSizeKeyword

pageSizeKeyword: string

Private whereKeyword

whereKeyword: string

Methods

and

  • Brings together the two criteria filters, ignoring the order by and pagination from the passed in criteria. Only keeps it from the original RSQLCriteria.

    Parameters

    Returns void

build

  • build(): string
  • Builds the query string that will be needed to send down to the server side API. Combines the keywords with their appropriate clauses to create the string.

    Returns string

or

  • Brings together the two criteria filters, ignoring the order by and pagination from the passed in criteria. Only keeps it from the original RSQLCriteria.

    Parameters

    Returns void

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