Paginated query type error
Getting the following error from my paginated query
Everything seems to be working correctly though even with the error.
6 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
I think its because your filter could cause it to return null. which blows up paginate
some people filter null results first
i can think of 5 ways to fix it.
I'm not conviced that's it. Even if I remove the
filter and withIndex completely I get the same type error.in that case it could still possibly return null if the table is empty
it shouldnt error if you are only using withIndex.. i never do full table scans
Could you paste the full query implementation @ThoorAdam ?
It's solved now, it didn't have to do with my query at all. One of my "guard" functions returned null instead of throwing an error when execution shouldn't continue.