# Leaderboard Around Owner Returns Null Cursors

**URL:** <https://forum.heroiclabs.com/t/leaderboard-around-owner-returns-null-cursors/2688>\
**Category:** Game Design\
**Tags:** sdk-unity, leaderboards\
**Created:** [June 1, 2022, 6:27am UTC](https://forum.heroiclabs.com/t/leaderboard-around-owner-returns-null-cursors/2688 "2022-06-01T06:27:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![prateek-sirah](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/prateek-sirah/32/943_2.png) [@prateek-sirah](https://forum.heroiclabs.com/u/prateek-sirah)\
**Post date:** [June 1, 2022, 6:27am UTC](https://forum.heroiclabs.com/t/leaderboard-around-owner-returns-null-cursors/2688/1 "2022-06-01T06:27:54Z")

</div>

Unity client call to ListLeaderboardRecordsAroundOwnerAsync returns null cursors for previous and next - the client is unable to fetch additional records beyond the initial limit of 100 if the user scrolls to the beginning or end of the leaderboard. Is it expected behaviour to return null cursors on this command?

1. Versions: Nakama 3.10, Windows, {Unity SDK 3.4.0}

```auto
result = await Client.ListLeaderboardRecordsAroundOwnerAsync(Session,PlayerDataKeys.NakamaDharma, PlayerData.NakamaID, limit: 50);
Debug.Log(result.PrevCursor);
Debug.Log(result.NextCursor);

```

This prints null for both cursors.

---

<div class="post-metadata">

**Author:** ![ftkg](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/ftkg/32/1180_2.png) [@ftkg](https://forum.heroiclabs.com/u/ftkg)\
**Post date:** [June 1, 2022, 1:19pm UTC](https://forum.heroiclabs.com/t/leaderboard-around-owner-returns-null-cursors/2688/2 "2022-06-01T13:19:19Z")

</div>

Hi @prateek-sirah,

what you’re seeing is expected behavior, this function in its current form does not return cursors.

---

<div class="post-metadata">

**Author:** ![maxmiranda](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/maxmiranda/32/1371_2.png) [@maxmiranda](https://forum.heroiclabs.com/u/maxmiranda)\
**Post date:** [October 27, 2022, 10:53pm UTC](https://forum.heroiclabs.com/t/leaderboard-around-owner-returns-null-cursors/2688/3 "2022-10-27T22:53:07Z")

</div>

@ftkg can y’all prioritize adding this? This really limits our ability to implement user-relative leaderboards. Why even offer this function if it’s not going to have cursors if users want to continue scrolling?

---

<div class="post-metadata">

**Author:** ![flavio](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/flavio/32/2161_2.png) [@flavio](https://forum.heroiclabs.com/u/flavio)\
**Post date:** [October 28, 2022, 9:19am UTC](https://forum.heroiclabs.com/t/leaderboard-around-owner-returns-null-cursors/2688/4 "2022-10-28T09:19:13Z")

</div>

Hi @maxmiranda,

That is in our backlog but it doesn’t have a high priority yet. There are at least two option for now:

- You could sponsor the feature by contacting us at [contact@heroiclabs.com](mailto:contact@heroiclabs.com)
- You could send us a pull request which we would highly appreciate

Of course, it depends on how essential that feature is for you.

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [November 2, 2022, 6:01pm UTC](https://forum.heroiclabs.com/t/leaderboard-around-owner-returns-null-cursors/2688/5 "2022-11-02T18:01:45Z")

</div>

@maxmiranda, cursors for `ListLeaderboardRecordsAroundOwner` have been introduced in Nakama v3.13.1. We haven’t updated the Unity SDK yet to accept the new cursor param, but we’ll include it in one of our next releases.

For now, you can use the [REST API](https://heroiclabs.com/docs/nakama/concepts/leaderboards/#list-leaderboard-records-around-owner), you’ll get a next/prev cursor in the first response that you can then set using the `cursor` param in the following request.

Otherwise, you can create your own custom RPC using the [leaderboardRecordsHaystack](https://heroiclabs.com/docs/nakama/server-framework/typescript-runtime/function-reference/#leaderboardRecordsHaystack) runtime function.
