Interface Sequence

Hierarchy

Index

Methods

Methods

public between(lower: any, upper: any, index?: Index): Sequence

Parameters

  • lower: any
  • upper: any
  • index?: Index optional

Returns

Sequence

public concatMap(transform: ExpressionFunction): Sequence

Parameters

Returns

Sequence

public contains(prop: string): Expression

Parameters

  • prop: string

Returns

Expression

public count(): Expression

Returns

Expression

public delete(options?: UpdateOptions): Operation

Parameters

Returns

Operation

public distinct(): Sequence

Returns

Sequence

public eqJoin(leftAttribute: string, rightSequence: Sequence, index?: Index): Sequence

Parameters

  • leftAttribute: string
  • rightSequence: Sequence
  • index?: Index optional

Returns

Sequence

public eqJoin(leftAttribute: ExpressionFunction, rightSequence: Sequence, index?: Index): Sequence

Parameters

Returns

Sequence

public filter(rql: ExpressionFunction): Sequence

Parameters

Returns

Sequence

public filter(rql: Expression): Sequence

Parameters

Returns

Sequence

public filter(obj: { [key: string]: any; }): Sequence

Parameters

  • obj: { [key: string]: any; }

Returns

Sequence

public groupBy(aggregators?: Aggregator[]): Expression

Parameters

Returns

Expression

public groupedMapReduce(group: ExpressionFunction, map: ExpressionFunction, reduce: ReduceFunction, base?: any): Sequence

Parameters

Returns

Sequence

public indexesOf(obj: any): Sequence

Parameters

  • obj: any

Returns

Sequence

public innerJoin(sequence: Sequence, join: JoinFunction): Sequence

Parameters

Returns

Sequence

public isEmpty(): Expression

Returns

Expression

public limit(n: number): Sequence

Parameters

  • n: number

Returns

Sequence

public map(transform: ExpressionFunction): Sequence

Parameters

Returns

Sequence

public nth(n: number): Expression

Parameters

  • n: number

Returns

Expression

public orderBy(keys?: Array<string>): Sequence

Parameters

  • keys?: Array<string> optional

Returns

Sequence

public orderBy(sorts?: Sort[]): Sequence

Parameters

  • sorts?: Sort[] optional

Returns

Sequence

public outerJoin(sequence: Sequence, join: JoinFunction): Sequence

Parameters

Returns

Sequence

public pluck(props?: Array<string>): Sequence

Parameters

  • props?: Array<string> optional

Returns

Sequence

public reduce(r: ReduceFunction, base?: any): Expression

Parameters

Returns

Expression

public replace(obj: Object, options?: UpdateOptions): Operation

Parameters

Returns

Operation

public replace(expr: ExpressionFunction): Operation

Parameters

Returns

Operation

public run(conn: Connection, cb: (err: Error, result: T) => void): any

Parameters

  • conn: Connection
  • cb: (err: Error, result: T) => void

Returns

any

public sample(n: number): Sequence

Parameters

  • n: number

Returns

Sequence

public skip(n: number): Sequence

Parameters

  • n: number

Returns

Sequence

public slice(start: number, end?: number): Sequence

Parameters

  • start: number
  • end?: number optional

Returns

Sequence

public union(sequence: Sequence): Sequence

Parameters

Returns

Sequence

public update(obj: Object, options?: UpdateOptions): Operation

Parameters

Returns

Operation

public withFields(selectors?: Array<any>): Sequence

Parameters

  • selectors?: Array<any> optional

Returns

Sequence

public without(props?: Array<string>): Sequence

Parameters

  • props?: Array<string> optional

Returns

Sequence

public zip(): Sequence

Returns

Sequence