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
In a queryConnect, I tried to use client.find(doctype).sortBy({title: 'desc'})
Expected result: The list of documents sorted by title in descending order
Alternative expected result: An exception stating that this syntax isn't supported
Actual result: No document, no exception
Workaround: Using client.find(doctype).where({}).sortBy({title: 'desc'})
Possibly, the sortBy clause is only usable if we have a where clause. This should propably considered as a bug. In any case, the query shouldn't be silently ignored
The text was updated successfully, but these errors were encountered:
Just tried, with the new syntax: client.query(Q('io.cozy.files').sortBy([{'name':'asc'}]) and I got a couch error saying that the selector is missing. So there is no more silent here, just a database that needs a selector to perform a sort.
In a
queryConnect
, I tried to useclient.find(doctype).sortBy({title: 'desc'})
Expected result: The list of documents sorted by title in descending order
Alternative expected result: An exception stating that this syntax isn't supported
Actual result: No document, no exception
Workaround: Using
client.find(doctype).where({}).sortBy({title: 'desc'})
Possibly, the
sortBy
clause is only usable if we have awhere
clause. This should propably considered as a bug. In any case, the query shouldn't be silently ignoredThe text was updated successfully, but these errors were encountered: