-
Notifications
You must be signed in to change notification settings - Fork 76
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
Feature Request: Pagination cursors #90
Comments
Hi @wovalle, is there a proper way to apply a cursor with current version? I see |
I don't have a solution for this yet 😔, haven't put too much attention into a way make a clean api (which is my current limitation). Do you have any fresh ideas? |
We have a quick update to use at least But for full-featured update and other cursors will need some more work. |
Currently it works by extending |
@wovalle I'm interested in working on this. After thinking about it for a bit, the only ways I see this working are:
OR
And you could add a function like |
I guess it's technically possible to add the ref as metadata for the returned entities and use that to pass to the next query. |
I built a super hacky proof of concept, there are some very obvious issues but it might make sense to consider this approach: garviand#3 |
As mentioned in #211 (comment) I'll take a look at this next week. I didn't have any idea of how to implement this one so I have dedicate some time to actually test it. Thanks for your great work! |
Hey @wovalle I rebased my pagination branch and made some updates. Here is the new draft PR: garviand#5 If you have some time, please take a look and let me know what you think. I took some shortcuts to get this prototype done and have some ideas on how to improve it but I'm curious whether you think I am on the right track! Thanks! |
@wovalle Just a heads up, my approach won't work. When you stringify an array, the named properties are removed so when passing the |
Any updates on this? |
Any updates? |
I'm not actively working on it but as a workaround you could use custom
queries (#246)
…On Wed, Aug 25, 2021 at 9:11 AM SimonSch ***@***.***> wrote:
Any updates?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#90 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB35QJD5TTAXZB4H627QSKTT6SJTJANCNFSM4I6WSI4Q>
.
--
Willy Ovalle
|
Firestore supports some pagination cursors such as
startAt
,endAt
andstartAfter
(the use of offset is uncouraged by google.I find the naming confusing and non-generic. Let's use this issue to discuss how an implementation of those function would look like in fireorm and from there create issues to do the actual implementation
The text was updated successfully, but these errors were encountered: