M Zeeshan
CCConvex Community
•Created by M Zeeshan on 10/4/2024 in #support-community
Schedule function
hello there
I need to execute a specific task every minute on creation (api.some_task.create), but only for a duration of 10 minutes. Could someone please guide me on how to schedule this function?
27 replies
CCConvex Community
•Created by M Zeeshan on 9/25/2024 in #support-community
Disable useQuery hook
Hello, I'm experiencing an issue with the Convex useQuery hook. Is it possible to disable it entirely? For instance, I've tried:
Currently, I'm handling this by checking the 'disabled' argument and returning if it's true. However, I'm wondering if there's a native or more idiomatic way to achieve this in Convex?"
3 replies
CCConvex Community
•Created by M Zeeshan on 9/17/2024 in #support-community
Cannot find module dataModel
error:
3 replies
CCConvex Community
•Created by M Zeeshan on 9/17/2024 in #support-community
Authentication in paginated query
How do I implement user authentication checks in paginated queries
error:
server:
front-end:
58 replies
CCConvex Community
•Created by M Zeeshan on 9/16/2024 in #support-community
Clerk auth session in Convex functions
i know i can get user object like this by configuring
auth.config.ts
and in httpActions
but how to get clerk active session in any function or httpAction ?49 replies
CCConvex Community
•Created by M Zeeshan on 9/15/2024 in #support-community
Retrieve Total Document Count Before Pagination
I want to retrieve the total number of documents found before pagination takes place. However, I tried the following code and encountered an error.
error:
Uncaught Error: A query can only be chained once and can't be chained after iteration begins.
code:
77 replies
CCConvex Community
•Created by M Zeeshan on 9/15/2024 in #support-community
Error in Server Component
hello there... I'm encountering an error in a server component and I'm unsure about the best approach to resolve it. Could you please provide guidance on how to handle this issue?
error:
Error: [Request ID: 04418ec216ae34ab] Server Error
ArgumentValidationError: Value does not match validator.
Path: .id
Value: "j97chph1jdefahph6wf901rsfs70jy3d"
Validator: v.id("skills")
12 replies
CCConvex Community
•Created by M Zeeshan on 9/10/2024 in #support-community
How to apply filter before pagination?
In the provided code, why are filter calls applied first to paginate the documents, and then the Predicate function is applied to those paginated documents?
What I need:
I want to first search the database, and then apply pagination to the filtered results. How can I modify the code to achieve this?
Provided Code:
21 replies
CCConvex Community
•Created by M Zeeshan on 9/10/2024 in #support-community
Compound index
Hello everyone, I need some help with Convex database indexing. I have a table named 'skills' and I have two separate indexes on the
is_published
and is_featured
fields. I need to query the data based on both these fields. Initially, I thought of using a compound index, but it seems like the withIndex
method doesn't allow multiple .eq()
checks. Is there any way to efficiently filter by both these fields using the indexes? Any help would be greatly appreciated!3 replies
CCConvex Community
•Created by M Zeeshan on 9/8/2024 in #support-community
Pagination with preloaded data
My main question is How to preload data with
And i also want to ask... is this possible in Convex : Cursor-based pagination: allowing me to jump to a specific page using a cursor token Offset-based pagination...? current server code :
usePaginatedQuery
And i also want to ask... is this possible in Convex : Cursor-based pagination: allowing me to jump to a specific page using a cursor token Offset-based pagination...? current server code :
9 replies