api.users.getUserapi.users.getUser to become api.users.queries.getUserapi.users.queries.getUser. BUT, there is a huge drawback to this approach: Typescript inference becomes entirely generic for me when folders are nested, meaning I lose all type safety in my frontend queries.convex/auth.tsconvex/auth.ts and also convex/users/functions.tsconvex/users/functions.ts. These both work in my frontend, but when introspecting the type of the apiapi object, we get very different results (see screenshot 1)auth.tsauth.ts file is type-safe (screenshot 2)users/functions.tsusers/functions.ts file is always anyany (screenshot 3)


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