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

Trying to choose ASC or DESC in order argument #41

Open
anat opened this issue May 23, 2019 · 0 comments
Open

Trying to choose ASC or DESC in order argument #41

anat opened this issue May 23, 2019 · 0 comments

Comments

@anat
Copy link
Contributor

anat commented May 23, 2019

I'm looking into sorting graphQL result depending on updatedAt setting:

Here is my query :

{payments(order: "updatedAt", where: + where + ){ id, state, token, amount, bankData, comment, createdAt, updatedAt, PaymentOrder, payment_order{ id, priceTaxIncluded, user_orders{firstName, lastName} }

I have a problem with the order argument.

I'm not able to sort ASC or DESC, as order arguments ask for a String I could not find any method to sort the result.

I tried with :
"updatedAt DESC"
"updatedAt_DESC"

but both fails

Any idea ?

Thank you

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