Skip to content

Allow sorting by multiple fields #373

@jeremyplichta

Description

@jeremyplichta

The current sort_by property in FilterQuery and others only allows a single string to be specified. To support more use cases this should support an array of field names and also a flexible way to specify whether each is DESC or ASC. As a bonus/nice to have it would be good to optionally validate that these are valid field names based on what is available in the index or aggregation pipeline.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions