Hi how can I run a mutation from my own
Hi how can I run a mutation from my own api route? i.e. not one defined by convex http
is there a server side equivelent of useMutation?
is there a server side equivelent of useMutation?
import { ConvexHttpClient, ConvexClient } from "convex/browser";
import { api } from "./convex/_generated/api.js";
// HTTP client
const httpClient = new ConvexHttpClient(CONVEX_URL_GOES_HERE);
httpClient.query(api.messages.list).then(console.log);