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

Add sorting #25

Closed
Tracked by #34
karatakis opened this issue Jul 29, 2022 · 1 comment · Fixed by #36
Closed
Tracked by #34

Add sorting #25

karatakis opened this issue Jul 29, 2022 · 1 comment · Fixed by #36

Comments

@karatakis
Copy link
Collaborator

Motivation

Sorting plays an important role on various scenarios, and SQL spec supports it for that reason.

Proposed Solutions

  • Add query sorting parameter

Additional Information

Example query:

query QueryZoo {
  queryZoo(pagination: {limit: 10, page: 7}, sorting: { name: 'asc', year: 'desc'}) {
    data {
      name
      year
      animals {
        name
      }
    }
    pages
    current
  }
}
@karatakis karatakis mentioned this issue Aug 8, 2022
17 tasks
@karatakis
Copy link
Collaborator Author

Final version APi will be like that

{
  actor(orderBy:{lastName: ASC}) {
    data {
      actorId
      firstName
      lastName
    }
  }
}

@karatakis karatakis mentioned this issue Aug 29, 2022
4 tasks
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

Successfully merging a pull request may close this issue.

1 participant