NerdkidChikiN
Convex Community3y ago
3 replies
NerdkidChiki

How do i change the type returned from a usePaginateQuery

hello everyone, i am querying data from a comments table that needs to be paginated but i also need to fetch data from the commentsvotes table (like a join table). The issue i have is that the returned type doesn't reflect the additional votes property i added. How do i fix this issue? Do i create a a new type and how do i force the return type to be of that custom type?
comments.ts_-_redditclone_-_Visual_Studio_Code_10_2_2023_1_35_35_PM.png
Was this page helpful?