Interface: SortableSortingFrom

ReactiveDb.SortableSortingFrom

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.SortableSortingFromSorting|ReactiveDb.Limitable|ReactiveDb.Projectable}

Requests an ascending sorting order on a given document field. Further sorting directives with an exclusion boundary are no longer available.

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

Type
ReactiveDb.SortableSortingFromSorting | ReactiveDb.Limitable | ReactiveDb.Projectable

sortingAscFrom(field, boundary) → {ReactiveDb.SortableSortingFrom|ReactiveDb.Limitable|ReactiveDb.Projectable}

Requests an ascending sorting order on a given document field, and excludes all documents whose value of this field falls short of a given boundary (inclusive). This directive actually mixes sorting and windowing.

Parameters:
Name Type Description
field ReactiveDb.DocumentField

The document field, which to sort on.

boundary ReactiveDb.JSONValue

The minimum value of the document field for documents not to be excluded from the query.

Returns:

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

Type
ReactiveDb.SortableSortingFrom | ReactiveDb.Limitable | ReactiveDb.Projectable

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

Requests a descending sorting order on a given document field. Further sorting directives with an exclusion boundary are no longer available.

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

Type
ReactiveDb.SortableSortingFromSorting | ReactiveDb.Limitable | ReactiveDb.Projectable

sortingDescFrom(field, boundary) → {ReactiveDb.SortableSortingFrom|ReactiveDb.Limitable|ReactiveDb.Projectable}

Requests a descending sorting order on a given document field, and excludes all documents whose value of this field is beyond a given boundary (inclusive). This directive actually mixes sorting and windowing.

Parameters:
Name Type Description
field ReactiveDb.DocumentField

The document field, which to sort on.

boundary ReactiveDb.JSONValue

The maximum value of the document field for documents not to be excluded from the query.

Returns:

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

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