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

Error related to pagination limit when join field is set. #8707

Open
energee opened this issue Oct 15, 2024 · 5 comments
Open

Error related to pagination limit when join field is set. #8707

energee opened this issue Oct 15, 2024 · 5 comments
Assignees
Labels

Comments

@energee
Copy link

energee commented Oct 15, 2024

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

@energee energee added status: needs-triage Possible bug which hasn't been reproduced yet v3 labels Oct 15, 2024
@energee
Copy link
Author

energee commented Oct 16, 2024

This appears to be resolved in 114

@energee energee closed this as completed Oct 16, 2024
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Oct 16, 2024
@energee
Copy link
Author

energee commented Oct 16, 2024

Sorry, spoke too soon still seeing the issue.

Image

@energee energee reopened this Oct 16, 2024
@github-actions github-actions bot added the status: needs-triage Possible bug which hasn't been reproduced yet label Oct 16, 2024
@JarrodMFlesch
Copy link
Contributor

@energee I am trying to follow but struggling to. Can you provide a screenshot of the view you are experiencing this in?

@JarrodMFlesch JarrodMFlesch self-assigned this Oct 16, 2024
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Oct 16, 2024
@energee
Copy link
Author

energee commented Oct 16, 2024

Screen.Recording.2024-10-16.at.3.22.34.PM.mov

@energee
Copy link
Author

energee commented Oct 16, 2024

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
Labels
Projects
None yet
Development

No branches or pull requests

2 participants