#Convex Component for each app?

1 messages · Page 1 of 1 (latest)

foggy linden
#

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?

surreal willowBOT
#

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](https://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!
lofty oxide
#

Your components need their own queries and mutations, and the app (root component) can run those via ctx.runQuery/Mutation/Action(components.[componentName].[functionName])