-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Error related to pagination limit when join field is set. #8707
Labels
Comments
energee
added
status: needs-triage
Possible bug which hasn't been reproduced yet
v3
labels
Oct 15, 2024
This appears to be resolved in 114 |
github-actions
bot
removed
the
status: needs-triage
Possible bug which hasn't been reproduced yet
label
Oct 16, 2024
github-actions
bot
added
the
status: needs-triage
Possible bug which hasn't been reproduced yet
label
Oct 16, 2024
@energee I am trying to follow but struggling to. Can you provide a screenshot of the view you are experiencing this in? |
github-actions
bot
removed
the
status: needs-triage
Possible bug which hasn't been reproduced yet
label
Oct 16, 2024
Screen.Recording.2024-10-16.at.3.22.34.PM.mov |
It seems like i can adjust the pagination but when i navigate to: /admin/collection/[collection-slug] and payload retrieves the limit from mongoDB, it fails (looks like its getting a string?) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Link to reproduction
No response
Environment Info
Node: 22.9.0
npm: 10.8.3
Yarn: 1.22.22
pnpm: 9.10.0
Relevant Packages:
payload: 3.0.0-beta.113
next: 15.0.0-canary.173
@payloadcms/db-mongodb: 3.0.0-beta.113
@payloadcms/graphql: 3.0.0-beta.113
@payloadcms/next/utilities: 3.0.0-beta.113
@payloadcms/richtext-lexical: 3.0.0-beta.113
@payloadcms/translations: 3.0.0-beta.113
@payloadcms/ui/shared: 3.0.0-beta.113
react: 19.0.0-rc-3edc000d-20240926
react-dom: 19.0.0-rc-3edc000d-20240926
Describe the Bug
Error: invalid argument to $limit stage: Expected a number in: $limit: "10"
Once pagination is set on the collection view, the page fails due to this error.
The limit and other arguments do not get set on the URL.
When i manually set a limit argument on the url eg "?limit=100", it prevents this error.
I don't think this error was present in beta 111.
Reproduction Steps
This occurs when there is a join field on the collection view being displayed.
Use the "per page" pagination, which subsequently should set the limit argument on the URL.
Adapters and Plugins
db-mongodb
The text was updated successfully, but these errors were encountered: