Skip to content

Run a custom database query in Convex

Convex shows a custom query editor and its output beneath a document table, offering a reference for keeping source code, results and data visible together. The flow takes 3 screens, from “Task documents” to “Query returns the sample document”, and the video shows every interaction between them.

  • 3 screens
  • Video
  • 1280×800
  • Captured October 31, 2026
A recording of run a custom database query in Convex

What the flow shows

  • The bottom panel splits Function Input and Output into adjacent columns below the table.
  • A Custom test query selector sits above the syntax-highlighted editor and a full-width Run Custom Query button.
  • The output header shows a green success status and execution time, while the body separates a log line from the returned object.
  • split panel
  • code editor
  • query console
  • status indicator

Every step

  1. Convex document table with a single task row and a floating function control at the lower right.
    Step 1 Task documents
  2. Bottom query panel with a code editor, Run Custom Query button and an output prompt.
    Step 2 Custom test query
  3. Query output showing a green success status, execution time, log text and a returned document object.
    Step 3 Query returns the sample document

Similar flows

Convex Data view with a table listing document IDs, done values, task names and creation times. Add a document to a table Convex · 3 screens Environment Variables card in Convex Deployment Settings with an Add button. Add an environment variable Convex · 4 screens Backup & Restore settings with schedule controls and a No backups in this deployment empty state. Request a deployment backup Convex · 4 screens Convex project directory with Projects and Deployments tabs, search, view controls and a Create Project button. Create a project and development deployment Convex · 6 screens Convex Data view with a no-tables message over a muted table illustration and a Create Table link. Create a table Convex · 3 screens Convex data grid with two document rows and a false value in the first done cell. Mark a task document complete Convex · 3 screens

More Convex flows

Give your agent the same designs

Add the Longwave design MCP server to Claude Code, Codex, Cursor or ChatGPT. Your agent can list these websites and flows, read every step and open any screen as an image before it builds. It is free; your agent asks you to sign in to Longwave the first time it connects.

Add design inspiration to your agent

Paste this into Claude Code or a terminal. Then run /mcp to sign in.