You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"]
The text was updated successfully, but these errors were encountered:
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
Our data service API is mostly based on Mango CouchDB. When creating an index,
fields
follows the sort syntax. Right now, we only allowfields
as astring[]
, but also allowing specifying direction of each field in the index may be desirable. So fields could be:Example, sorting by 2 fields:
Example, sorting by 2 fields, assuming default direction ("ASC") for both :
["fieldNameA", "fieldNameB"]
The text was updated successfully, but these errors were encountered: