Table definitions. Optional: with no schema file the project compiles with zero tables, and tables accept documents of any shape. Must export default defineSchema(...).
convex/*.ts
Function modules. Exports registered with query, mutation, action, httpAction, or their internal variants become callable functions.
convex/http.ts
The only file HTTP routes are read from. Must export default a router initialized with httpRouter().
convex/auth.config.ts or .js
Auth provider list. Exactly one of the two extensions may exist. process.env reads resolve at codegen time.
convex/_generated/ is rewritten by codegen on every run:
File
Contents
api.ts
The api and internal function-reference trees.
server.ts
Re-exports the function registrars (query, mutation, action, httpAction, internalQuery, internalMutation, internalAction, paginatedQuery, internalPaginatedQuery, plus defineSchema, defineTable, httpRouter) and the QueryCtx, MutationCtx, and ActionCtx types.
scheduled_functions.ts
References for schedulable (mutation) functions.
dataModel.d.ts
Doc, Id, TableNames, and DataModel types derived from the schema, including the _id, _creationTime, and _updateTime system fields.
.nimbus/convex/ holds the build artifacts the server executes: