Skip to content

ENG-651: Add pagination section #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2023

Conversation

calummoore
Copy link
Contributor

No description provided.

@linear
Copy link

linear bot commented May 22, 2023

ENG-651 Use a class for CollectionListResponse

This enables a better experience around pagination queries. User could write something like:

const res = await db.collection('hello').get()
const next = await res.next(); // gets the next set of collections
  • Refactor transformation of list values
  • Add .next() and previous() cursor methods
  • Update docs

@calummoore calummoore merged commit 5a3f3e3 into main May 22, 2023
@calummoore calummoore deleted the eng-651-use-a-class-for-collectionlistresponse branch May 22, 2023 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant