Convex autogen not creating types in new repo
I previously created a node project that uses convex for its db; the project name is "splendor". i created another project that i want to use the same database for. but when i
npx convex dev
, the tables that are specific to this node project (but which i want to be shared within the same convex project) are not getting autogen files. why?
4 Replies
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!
For even more context: I have a bunch of repos for each one of my customers since there's lots of customization for each. ideally though i'd like to have all of the data i generate be in the same project so i can run analytics across all of my customers. the Kapa result implied that i'd need to have a repo that just contains my convex mutations and then use the experimental ts feature to export this to my different repos. is this true?
from the docs it seemed like since convex is "additive-only by default" i could define the tables i need in each repo as long as there are no collisions. what am i missing here? the alternative seems like i'd need to have a convex repo where i define my mutations and then i'd have to jointly update that repo and my application repos in order to add mutations/queries, which would be pretty inconvenient.
Hi! If you’d like to share the same Convex deployment between repos, you can only have the schema and functions defined in one place. These docs should help with your use case. Let me know if you have any questions
https://docs.convex.dev/production/multiple-repos
Multiple Repositories | Convex Developer Hub
Use Convex in multiple repositories
so i should indeed have 2+ repos active, "convex-db" and
n
application repos, writing mutations in convex-db and letting the changes propagate to the other(s)?