Skip to main content

Interface: QueryCtx<DataModel>

server.QueryCtx

If you're using code generation, use the QueryCtx type in convex/_generated/server.d.ts which is typed for your data model.

If you need an unparameterized QueryCtx use GenericQueryCtx.

Deprecated

Type parameters

NameType
DataModelextends GenericDataModel

Hierarchy

Properties

db

db: GenericDatabaseReader<DataModel>

A utility for reading data in the database.

Inherited from

GenericQueryCtx.db

Defined in

server/registration.ts:87


auth

auth: Auth

Information about the currently authenticated user.

Inherited from

GenericQueryCtx.auth

Defined in

server/registration.ts:92


storage

storage: StorageReader

A utility for reading files in storage.

Inherited from

GenericQueryCtx.storage

Defined in

server/registration.ts:97