Skip to content

Trying to choose ASC or DESC in order argument #41

@anat

Description

@anat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions