get_votes_sorted_by_created_at

@mount("votes.get_votes_sorted_by_created_at") query get_votes_sorted_by_created_at(    page_cursor: text,     sort_direction: text,     prop_id: rowid,     account_id: byte_array?,     filter_state: text): paged_result

Retrieves a paginated and sorted list of votes for a specific proposal. The query is used to fetch, sort, and navigate through votes for a proposal.

Return

A paginated response containing a sorted list of votes and the updated cursor for the next page.

Parameters

page_cursor
  • A cursor representing the starting point for pagination.

sort_direction
  • The sort direction for the votes. Accepted values are "asc", "desc", or "none".

prop_id
  • The ID of the proposal for which votes are being retrieved.

account_id
  • (Optional) The account ID of the citizen to filter votes by. Defaults to null.

filter_state
  • A string to filter votes by their state. Defaults to an empty string.