Is there anything similar to `hasNextPage` when wo...
# prisma-whats-new
l
Is there anything similar to
hasNextPage
when working with the Simple API? I've implemented pagination, using a combination of
first
and
after
in my query filter. It would be useful to have an indication that there are no further records to return. Reference for
hasNextPage
in the Apollo docs here: http://dev.apollodata.com/react/pagination.html#relay-cursors
h
Hello @lewisblackwood, you just need to add a
_allYourTypeMeta {count}
in your query. You'll get the number of existing documents. Hope it helps 😉
l
Ah great, I'd forgotten the count was available. Thanks!
👍 1