How to retrieve all user badges using LIQL search on the user collection?
Hello,
Do we need pagination for that field? or does it output all user_badges available for the user in one shot?
I'm aware that liql queries can add a limit / offset (up to 1000 entries), or use the next_cursor field but how do we do it for the nested user_badges entries?
As far as I can see the nested badge entries also have a size but no cursor attached to them. Didn't see a way to restrict limits / offsets for inner elements as most relationships that are available in the api and documentation are for top relationships only.
The /api/2.0/users/<id>/badges responds with 404.
The /restapi/vc/users/id/<id>/badges doesn't seem to show pagination as well.
The liql endpoint /api/2.0/search?q=select user_badges from users where id="<id>" doesn't show a mean to paginate the inner relationship.
Any thoughts?
Hello:
Unfortunately, in LiQL while it is possible to obtain all of the badges for a user with something like the below query, it won't allow the use of LIMIT for that field or ORDER BY.
select user_badges from users where login=<USER_LOGIN>
You will get all the badges for a user, but you are correct that this particular nested field cannot be paginated.
Thank you,
Roger