Interface: Sortable

ReactiveDb.Sortable

Represents a Queryable object, whose resulting documents can be sorted along a DocumentField.

Extends

Members

(readonly) collection :ReactiveDb.CollectionReference

The collection to be queried.

Type:
Inherited From:

Methods

sortingAsc(field) → {ReactiveDb.Sortable|ReactiveDb.Limitable|ReactiveDb.Projectable}

Requests an ascending sorting order on a given document field.

Parameters:
Name Type Description
field ReactiveDb.DocumentField

The document field, which to sort on.

Returns:

The resulting Queryable instance may be further specialized using methods of the Sortable (to add sort directives), Limitable and Projectable interfaces.

Type
ReactiveDb.Sortable | ReactiveDb.Limitable | ReactiveDb.Projectable

sortingDes(field) → {ReactiveDb.Sortable|ReactiveDb.Limitable|ReactiveDb.Projectable}

Requests an descending sorting order on a given document field.

Parameters:
Name Type Description
field ReactiveDb.DocumentField

The document field, which to sort on.

Returns:

The resulting Queryable instance may be further specialized using methods of the Sortable (to add sort directives), Limitable and Projectable interfaces.

Type
ReactiveDb.Sortable | ReactiveDb.Limitable | ReactiveDb.Projectable
deprecated
Authentication
ServerlessDb
ReactiveDb