erquhartE
Convex Community3y ago
10 replies
erquhart

Support `index` in function folders

I know this is probably tricky to do, but I'm betting a lot of folks are going to land on a file structure something like:
/convex
  /feature
    /index.ts
    /util.ts
    /some-other-stuff.ts
  /another-feature
    /index.ts
    ...

Where the api for a feature basically lives in the index file and the other files are supporting.

It would be cool to be able to use this kind of structure and be able to do api.feature.getFoo instead of api.feature.index.getFoo.

Any chance there's a workaround?
Was this page helpful?