Skip to content

Offset based paging in GraphQL integration #1562

Discussion options

You must be logged in to vote

Inspecting the source code I think I see the solution now. There is this public method in GraphQLEntityViewSupport:

public <T> EntityViewSetting<T, CriteriaBuilder<T>> createSetting(Class<T> entityViewClass, DataFetchingEnvironment dataFetchingEnvironment, String elementRoot, KeysetPage keysetPage, Integer first, Integer last, Integer offset)

where I can simply pass first and offset (other paging related params will be null).

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@beikov
Comment options

@david-kubecka
Comment options

@beikov
Comment options

@david-kubecka
Comment options

@beikov
Comment options

Answer selected by david-kubecka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants