Skip to main content
Use query getBattles to retrieve the list of all battles related to the user. In a response it returns a list of Battle objects that fit the applied filters. Results will be returned with the pagination and possibility to change the order and sorting key (default sorting is by the battle creation date, ascending). The following arguments can be used in the query:
Only user contexts associated with the ADMINISTRATOR scope can access the list of other users’ battles.
Here is an example of the query execution:

Pagination

Learn how to efficiently navigate through large sets of items using cursor-based pagination.