Hamburger-Fries
Hamburger-Fries3mo ago

Convex Component for each app?

We have NextJS setup where we setup each Nextjs App to create a Convex Component in its own folder with dedicated schema, mutations and query files.
This allows us to keep each feature in its own separate area with custom tables. My question is do we need to create mutations and query’s? Or can we just use Convex components to generate custom Convex Components as a way of organizing the DB and schema?
2 Replies
Convex Bot
Convex Bot3mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
erquhart
erquhart3mo ago
Your components need their own queries and mutations, and the app (root component) can run those via ctx.runQuery/Mutation/Action(components.[componentName].[functionName])
can we just use Convex components to generate custom Convex Components as a way of organizing the DB and schema?
I don't fully understand this question, let me know if I'm not answering the right thing here

Did you find this page helpful?