Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Selector

Hierarchy

  • Selector

Index

Constructors

constructor

  • new Selector(selector: any, type?: string): Selector

Properties

clauses

clauses: any

Protected logger

logger: JSWLogger

selectorCompiled

selectorCompiled: any

Static AGG_FIELD_SELECTOR

AGG_FIELD_SELECTOR: string = "project"

Static FIELD_SELECTOR

FIELD_SELECTOR: string = "field"

Static MATCH_SELECTOR

MATCH_SELECTOR: string = "match"

Static SORT_SELECTOR

SORT_SELECTOR: string = "sort"

Methods

Private ___buildSelector

  • ___buildSelector(selector: any): any[]

Private buildDocumentSelector

  • buildDocumentSelector(key: any, value: any): IClause

Private buildKeypathSelector

  • buildKeypathSelector(keypath: any, value: any): IClause

compile

compileFields

  • compileFields(spec: any, aggregation: any): any

compileSort

  • compileSort(spec: any): any

Private createClause

test

  • test(doc: any): any

Static isSelectorCompiled

  • isSelectorCompiled(selector: any): boolean

Static matches

  • matches(selector: any, doc: any): any

Generated using TypeDoc