Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request (port-data): allow passing field sort direction when creating an index #485

Closed
TillaTheHun0 opened this issue Mar 18, 2022 · 0 comments · Fixed by #601 or #603
Closed
Assignees
Labels
data enhancement New feature or request index

Comments

@TillaTheHun0
Copy link
Member

TillaTheHun0 commented Mar 18, 2022

Our data service API is mostly based on Mango CouchDB. When creating an index, fields follows the sort syntax. Right now, we only allow fields as a string[], but also allowing specifying direction of each field in the index may be desirable. So fields could be:

Example, sorting by 2 fields:

[{"fieldName1": "DESC"}, {"fieldName2": "ASC" }]

Example, sorting by 2 fields, assuming default direction ("ASC") for both :

["fieldNameA", "fieldNameB"]

@TillaTheHun0 TillaTheHun0 added enhancement New feature or request data labels Mar 18, 2022
@TillaTheHun0 TillaTheHun0 changed the title feat(port-data): allow passing field sort direction when creating an index feature request (port-data): allow passing field sort direction when creating an index Mar 18, 2022
@TillaTheHun0 TillaTheHun0 self-assigned this May 31, 2023
@TillaTheHun0 TillaTheHun0 linked a pull request Jun 1, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data enhancement New feature or request index
Projects
Status: Done
1 participant