Create Convex queries, mutations, and actions with proper validation, authentication, and error handling. Use when implementing new API endpoints.
Generate type-safe Convex queries, mutations, and actions with built-in validation, authentication, and error handling. Supports three function types: queries (read-only, cached), mutations (transactional writes with automatic retries), and actions (external APIs, long-running tasks) Enforces argument and return type validation via Convex validators; includes authentication checks and authorization patterns for ownership verification Actions requiring Node.js APIs (SDKs, crypto) must use "use node" directive and live in separate files from queries and mutations Provides complete examples covering secure queries with auth, validated mutations, external API calls, and internal backend-only functions with a pre-flight checklist Convex Function Creator Generate secure, type-safe Convex functions following all best practices. When to Use Creating new query functions (read data) Creating new mutation functions (write data) Creating new action functions (external APIs, long-running) Adding API endpoints to your Convex backend Function Types Queries (Read-Only) Can only read from database Cannot modify data or call external APIs Cached and reactive Run in transactions
don't have the plugin yet? install it then click "run inline in claude" again.