Skip to content
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

Ability to add cursor pagination #735

Conversation

fikri-kompanion
Copy link
Contributor

Extend model pagination with cursor pagination.

Example:

@apiResourceModel App\Models\User paginate=10,cursor

Extend model pagination with cursor pagination.

```
@apiResourceModel App\Models\User paginate=10,cursor
```
@shalvah
Copy link
Contributor

shalvah commented Sep 29, 2023

You need to add tests 😬

@shalvah
Copy link
Contributor

shalvah commented Jun 17, 2024

Hey, are you still interested in adding this? Do you need help adding tests?

@fikri-kompanion
Copy link
Contributor Author

@shalvah that would be good

@olivernybroe
Copy link
Contributor

Hey 👋 Was about to open a PR for this but saw this one already existed.

Is this currently being worked on? Else I don't mind giving a hand with the missing tests.
Also the ResponseFromApiResource attribute should prob. also get a property for this.

@shalvah
Copy link
Contributor

shalvah commented Nov 5, 2024

Still open to merging this once a test is added. (Sorry, I'm fairly busy, so can't do much myself.)

@olivernybroe
Copy link
Contributor

@shalvah no worries at all, thank you for all the work you do maintaining this project!

I have opened a PR which adds tests for it and updated the attribute.

@shalvah shalvah closed this in #917 Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants