model/model/ directory, and then importing and calling those functions from your Convex mutations and queries.model/model/, and then import and call that function from the original mutation/query. I don't fully understand the rationale behind this, since now there are two separate files with similar/identical function names, and two places to test instead of one.model/model/? My first intuition was to only relocate the shared logic, but the docs seem to suggest otherwise?
Join the Discord to ask follow-up questions and connect with the community
Join the Convex Discord! Explore Convex, the backend platform that keeps your app in sync.
16,164 Members
Join