Skip to main content

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

NameType
DataModelextends GenericDataModel

Hierarchy

Properties

db

db: GenericDatabaseWriter<DataModel>

A utility for reading and writing data in the database.

Inherited from

GenericMutationCtx.db

Defined in

server/registration.ts:41


auth

auth: Auth

Information about the currently authenticated user.

Inherited from

GenericMutationCtx.auth

Defined in

server/registration.ts:46


storage

storage: StorageWriter

A utility for reading and writing files in storage.

Inherited from

GenericMutationCtx.storage

Defined in

server/registration.ts:51


scheduler

scheduler: Scheduler

A utility for scheduling Convex functions to run in the future.

Inherited from

GenericMutationCtx.scheduler

Defined in

server/registration.ts:56