Skip to content

GraphQl: Limit and sorting options #222

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

Merged
merged 6 commits into from
Nov 29, 2024

Conversation

iLLiCiTiT
Copy link
Member

@iLLiCiTiT iLLiCiTiT commented Nov 29, 2024

Changelog Description

GraphQl now does support to define limit of fetched entities and order in which are fetched.

Additional review information

The new functionality was added for events and activilities methods as they might have actuall use-case.

Testing notes:

  1. Call get_events -> you should get many events sorted by ascending order based on creation date.
  2. Call get_events with order set to SortOrder.descending -> the same amount of events from in opposite order.
  3. Call get_events with limit set to 10 -> you should get first 10 events available in your server.
  4. Call get_events with limit set to 10 and order set to SortOrder.descending -> you should get last 10 events available in your server.

@iLLiCiTiT iLLiCiTiT added the type: enhancement New feature or request label Nov 29, 2024
@iLLiCiTiT iLLiCiTiT self-assigned this Nov 29, 2024
@iLLiCiTiT iLLiCiTiT merged commit 6bcef7d into develop Nov 29, 2024
2 checks passed
@iLLiCiTiT iLLiCiTiT deleted the enhancement/graphql-sort-and-limit branch November 29, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant