Skip to main content
Confect exposes Effect services that wrap Convex platform capabilities. These services are generated in confect/_generated/services.ts and are available when implementing your Confect functions.
import {
  ActionRunner,
  Auth,
  DatabaseReader,
  DatabaseWriter,
  MutationRunner,
  QueryRunner,
  Scheduler,
  StorageReader,
  StorageWriter,
  StorageActionWriter,
  VectorSearch,
} from "./_generated/services";

Database

DatabaseReader

Query Mutation Read documents from the database.

DatabaseWriter

Mutation Insert, edit, and delete documents from the database.

Function invocation

QueryRunner

Query Mutation Action Run Confect queries.

MutationRunner

Mutation Action Run Confect mutations.

ActionRunner

Action Run Confect actions.

Storage

StorageReader

Query Mutation Action Retrieve URLs for blobs in storage.

StorageWriter

Mutation Action Generate upload URLs and delete blobs.

StorageActionWriter

Action Get and store blobs.

Authentication

Auth

Query Mutation Action Access the current user’s identity.

Scheduling

Scheduler

Mutation Action Schedule Confect functions to run after a delay or at a specific time.

VectorSearch

Action Query vector indexes for semantic similarity search.

Convex context

QueryCtx

Query Raw Convex query context.

MutationCtx

Mutation Raw Convex mutation context.

ActionCtx

Action Raw Convex action context.