my convex server:
convex/connectionStorage.ts
export const set = mutation({
...
});
client code:
import { ConvexHttpClient } from "convex/browser";
import { api } from "./convex/_generated/api.js";
// HTTP client
const httpClient = new ConvexHttpClient('https://something.convex.cloud');
httpClient.mutation(api.connectionStorage.set, {
...
});
The convex client is within a Node.js app, and there's an error while compiling it says "module not found" for:
import { api } from "./convex/_generated/api.js";
This makes sense to me because the client has no idea about the structure of Convex API, so how do I call that mutation in Convex?