Feature: Cursor Pagination with GraphQL

Feature: Cursor Pagination with GraphQL

Ben Awad

6 лет назад

14,517 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@Thobissen
@Thobissen - 09.09.2020 13:50

Hey Ben.

Is there any specific reason why you are using dates as the cursor instead of the row id? Suspecting this is due to some specific implementation detail for the project you are working on in the video, but is this the case or is there some other reason why using the id as the cursor could be bad?

Thanks!

Ответить
@sushilbansalk
@sushilbansalk - 15.03.2019 14:19

Hi Ben, i think @connection directive should be used with pagination.

Ответить
@douglashoang3894
@douglashoang3894 - 14.01.2019 19:52

Learning a lot from your series! Thanks for these awesome tutorials!

Ответить
@bakbak1830
@bakbak1830 - 18.12.2018 00:52

Hi Ben, it is possible that two messages have some createAt date. I tried to use id alongside date for comparison. Problem is you can not use < or > operators with uuid. How i can avoid this situation.

Ответить
@kenwfrederick
@kenwfrederick - 10.04.2018 21:41

Thanks for this video! Sometimes documentation about features like cursor-based pagination, for me, is hard to follow. Seeing an example of how it's done is awesome.

Ответить