Interface: SortableSorting

ReactiveDb.SortableSorting

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

after(doc) → {ReactiveDb.Limitable|ReactiveDb.Projectable}

Requests narrowing the window of returned documents by excluding all documents that are sorted before the given cursor along the sort directives of the query. This method is not available if no sort directive has been specified.

Parameters:
Name Type Description
doc ReactiveDb.Document

Cursor document, before which to exclude documents from the query.

Returns:

The resulting Queryable instance may be further specialized using methods of the Limitable and Projectable interfaces.

Type
ReactiveDb.Limitable | ReactiveDb.Projectable

sortingAsc(field) → {ReactiveDb.SortableSorting|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 SortableSorting (to add sort directives), Limitable and Projectable interfaces.

Type
ReactiveDb.SortableSorting | ReactiveDb.Limitable | ReactiveDb.Projectable

sortingDesc(field) → {ReactiveDb.SortableSorting|ReactiveDb.Limitable|ReactiveDb.Projectable}

Requests a 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 SortableSorting (to add sort directives), Limitable and Projectable interfaces.

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