Interface: MutationCtx<DataModel>
server.MutationCtx
If you're using code generation, use the MutationCtx
type in
convex/_generated/server.d.ts
which is typed for your data model.
If you need an unparameterized MutationCtx use GenericMutationCtx.
Deprecated
Type parameters
Name | Type |
---|---|
DataModel | extends GenericDataModel |
Hierarchy
-
GenericMutationCtx
<DataModel
>↳
MutationCtx
Properties
db
• db: GenericDatabaseWriter
<DataModel
>
A utility for reading and writing data in the database.
Inherited from
Defined in
auth
• auth: Auth
Information about the currently authenticated user.
Inherited from
Defined in
storage
• storage: StorageWriter
A utility for reading and writing files in storage.
Inherited from
Defined in
scheduler
• scheduler: Scheduler
A utility for scheduling Convex functions to run in the future.