Clayton
Clayton5mo ago

I'm trying to better organize my convex

I'm trying to better organize my convex folder... could I structure it like this?
convex/
audits/
index.ts
queries.ts
mutations.ts
actions.ts
helpers.ts
types.ts
convex/
audits/
index.ts
queries.ts
mutations.ts
actions.ts
helpers.ts
types.ts
7 Replies
nipunn
nipunn5mo ago
yep! That's allowed! only the special ones have to be in convex/ eg schema.ts and http.ts
Clayton
ClaytonOP5mo ago
perfect! My current audits.ts file is 1,934 lines LOL
nipunn
nipunn5mo ago
even with schema.ts - it's just a code file. You need that file to be there, but it can import and spread things from other files - so you can reorganize how you like
Clayton
ClaytonOP5mo ago
Love it! I'm so happy I decided to use convex over supabase for this project :trophy:
v
v5mo ago
Convex over what?

Did you find this page helpful?