Support CursorPaging.first
being null
or add a extra parameter to fetch all.
#63
Labels
enhancement
New feature or request
This is kind of a follow-up of #62
Is your feature request related to a problem? Please describe.
As explained in #62 I want to use a paginated query most of the time. But in some specific/rare scenarios, I would like to fetch the entire list of items (and not only the first page).
Using 2 resolvers as suggested in #62 (comment) brings some issues because the type of the query changes between the paginated one (
TodoConnection
) and the unpaginated one (Todo
).For some languages/front-end stack (I'm using Flutter (dart) and
ferry
), the type differences are an issue and prevent abstractions.That's why I would need to be able to reuse the same request/query for unpaginated and paginated lists.
Have you read the Contributing Guidelines?
Yes.
Describe the solution you'd like
Supporting and not specifying any
CursorPaging.first
orCusorPaging.last
could return the entire list instead of just a page.The returned type would still be
TodoConnection
, it's just that theedges
will contain all thenode
s.Describe alternatives you've considered
Give an arbitrary very high value to
first
(ex:1000
)The text was updated successfully, but these errors were encountered: