DinumaD
Convex Communityβ€’3y agoβ€’
5 replies
Dinuma

Mutation in Convex through NextJS API Routes

Hello, I'm currently working on a NextJS Project where there are multiple riddles where the user will submit their answers. I'm currently evaluating them on the server-side through NextJS 13 API Routes (Route Handlers).

I was wondering how I would create a mutation from NextJS 13 API Routes into Convex to update my DB.

I'm majorly relying on convex real-time for a scoreboard (high-read throughput), but I need the writes to simply just be over HTTP, as I currently validate them through existing NextJS API Routes.

Attached a flow chart of my problem, would love recommendation(s) / resource(s).
image.png
Was this page helpful?