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

Cannot multi- order ParseQuery with ascending and descending keys with "createdAt" #47

Open
fahadzafar opened this issue Jul 17, 2015 · 0 comments

Comments

@fahadzafar
Copy link

So trying to sort Ascending w.r.t createdAt but Descending wtr ANOTHER_KEY.

now if i call parseQuery.orderByDescending("createdAt,ANOTHER_KEY"), everything is fine, but if i do
parseQuery.orderByDescending("ANOTHER_KEY"),
parseQuery.addOrderByAscending("createdAt")

it throws a parse exception from the parseserver saying createdAt is not a valid order key.

I looked at the source, for the REST api, you simply add the key with a '-' sign for descending so why is this happening ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant