.paginate() result type returning a single document, not an array of documents
Any ideas? Thanks in advance
4 Replies
the error on .map():
Try
reports.page
ah, I am an idiot
thank you
skimmed the docs but it is very clearly explained there
we might be able to make that type display better, it's annoying it says
PaginationResult<...>
instead of {page: ..., ...}