How to call a Convex mutation from createServerFn?
I'm lost on how I can use Convex from the server. Here is my attempt
Here is my mutation
4 Replies
fascinating-indigo•6mo ago
cc @ballingt
absent-sapphireOP•6mo ago
If there is any example boilerplate on how to call convex from the createServerFn handler that would be amazing
So I basically want to have some validations on the server side (does the user have enough credits)
I can see there is:
Not sure if its also available for tanstack
wise-white•6mo ago
Yep works in tanstack if use specify the url as an option
absent-sapphireOP•6mo ago
im getting
Whereas in the NextJSOptions it says:
Do you know how I can pass the to the fetchQuery/fetchMutation?
okay apparently this is the syntax