Class Aggregate

Index

Constructor methods

Methods

Constructor methods

constructor(options?: Array<Object>): Aggregate

Parameters

  • options?: Array<Object> optional

Returns

Aggregate

Methods

public append(options?: Array<Object>): Aggregate

Parameters

  • options?: Array<Object> optional

Returns

Aggregate

public exec(callback?: (err: any, result: T) => void): Promise

Parameters

  • callback?: (err: any, result: T) => void optional

Returns

Promise

public group(arg: Object): Aggregate

Parameters

  • arg: Object

Returns

Aggregate

public limit(num: number): Aggregate

Parameters

  • num: number

Returns

Aggregate

public match(arg: Object): Aggregate

Parameters

  • arg: Object

Returns

Aggregate

public near(parameters: Object): Aggregate

Parameters

  • parameters: Object

Returns

Aggregate

public project(arg: string): Aggregate

Parameters

  • arg: string

Returns

Aggregate

public project(arg: Object): Aggregate

Parameters

  • arg: Object

Returns

Aggregate

public read(pref: string, tags?: Array<Object>): Aggregate

Parameters

  • pref: string
  • tags?: Array<Object> optional

Returns

Aggregate

public select(filter: string): Aggregate

Parameters

  • filter: string

Returns

Aggregate

public skip(num: number): Aggregate

Parameters

  • num: number

Returns

Aggregate

public sort(arg: string): Aggregate

Parameters

  • arg: string

Returns

Aggregate

public sort(arg: Object): Aggregate

Parameters

  • arg: Object

Returns

Aggregate

public unwind(fiels: string, rest?: Array<string>): Aggregate

Parameters

  • fiels: string
  • rest?: Array<string> optional

Returns

Aggregate