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

GqlEdges sorting #1906

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

GqlEdges sorting #1906

wants to merge 5 commits into from

Conversation

louisch
Copy link
Contributor

@louisch louisch commented Jan 7, 2025

What changes were proposed in this pull request?

Provide a sorted field to GqlEdges so that the client may query for a list of edges sorted by some criteria. Currently supports sorting by src ID, dst ID, latest time, earliest time, property value (via properties, i.e. the unified properties), passing in multiple fields to sort by in order of priority, and reversing the sort.

Why are the changes needed?

Timestamp sorting was requested by client

Does this PR introduce any user-facing change? If yes is this documented?

Yes, GraphQL API is currently not documented

How was this patch tested?

Some basic tests run in the GraphQL Playground to test the query, and unit tests were added to python/tests/graphql/test_edge_sorting.py.

Are there any further changes required?

Some improvements to the API to allow for sorting by constant properties and temporal properties specifically could be possible in the future, if need be.

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 this pull request may close these issues.

1 participant