AptlyStar

Convex

Use Convex database

Instructions d'utilisation

Integrate Convex into the workflow. Run query, mutation, and action functions on your deployment, list tables with their schemas, and export documents with snapshot pagination and change deltas.

Outils

convex_query

Run a Convex query function and return its result

Entrée

ParamètreTypeObligatoireDescription
deploymentUrlstringOuiConvex deployment URL (e.g., https://your-deployment.convex.cloud\)
deployKeystringOuiConvex deploy key from the dashboard Settings page
functionPathstringOuiPath to the query function (e.g., messages:list or folder/file:myQuery)
argsjsonNonNamed arguments to pass to the function as a JSON object

Sortie

ParamètreTypeDescription
valuejsonResult returned by the query function
logLinesarrayLog lines printed during the function execution

convex_mutation

Run a Convex mutation function to write data and return its result

Entrée

ParamètreTypeObligatoireDescription
deploymentUrlstringOuiConvex deployment URL (e.g., https://your-deployment.convex.cloud\)
deployKeystringOuiConvex deploy key from the dashboard Settings page
functionPathstringOuiPath to the mutation function (e.g., messages:send or folder/file:myMutation)
argsjsonNonNamed arguments to pass to the function as a JSON object

Sortie

ParamètreTypeDescription
valuejsonResult returned by the mutation function
logLinesarrayLog lines printed during the function execution

convex_action

Run a Convex action function and return its result

Entrée

ParamètreTypeObligatoireDescription
deploymentUrlstringOuiConvex deployment URL (e.g., https://your-deployment.convex.cloud\)
deployKeystringOuiConvex deploy key from the dashboard Settings page
functionPathstringOuiPath to the action function (e.g., emails:send or folder/file:myAction)
argsjsonNonNamed arguments to pass to the function as a JSON object

Sortie

ParamètreTypeDescription
valuejsonResult returned by the action function
logLinesarrayLog lines printed during the function execution

convex_run_function

Run any Convex function (query, mutation, or action) by path without specifying its type

Entrée

ParamètreTypeObligatoireDescription
deploymentUrlstringOuiConvex deployment URL (e.g., https://your-deployment.convex.cloud\)
deployKeystringOuiConvex deploy key from the dashboard Settings page
functionPathstringOuiPath to the function (e.g., messages:list or folder/file:myFunction)
argsjsonNonNamed arguments to pass to the function as a JSON object

Sortie

ParamètreTypeDescription
valuejsonResult returned by the function
logLinesarrayLog lines printed during the function execution

convex_list_tables

List all tables in a Convex deployment along with their JSON schemas. Requires streaming export, available on Convex paid plans.

Entrée

ParamètreTypeObligatoireDescription
deploymentUrlstringOuiConvex deployment URL (e.g., https://your-deployment.convex.cloud\)
deployKeystringOuiConvex deploy key from the dashboard Settings page

Sortie

ParamètreTypeDescription
tablesarrayNames of the tables in the deployment
schemasjsonMap of table name to the JSON schema of its documents

convex_list_documents

List documents from a Convex table via a paginated snapshot. Pass the returned snapshot and page cursor back in to fetch the next page. Requires streaming export, available on Convex paid plans.

Entrée

ParamètreTypeObligatoireDescription
deploymentUrlstringOuiConvex deployment URL (e.g., https://your-deployment.convex.cloud\)
deployKeystringOuiConvex deploy key from the dashboard Settings page
tableNamestringNonTable to list documents from. Omit to list documents from all tables.
snapshotstringNonSnapshot timestamp from a previous page. Omit on the first request to start a new snapshot.
pageCursorstringNonPage cursor from a previous page of the same snapshot. Omit on the first request.

Sortie

ParamètreTypeDescription
documentsarrayDocuments in this page of the snapshot
hasMorebooleanWhether more pages remain in the snapshot
snapshotstringSnapshot timestamp to pass back in when fetching the next page
pageCursorstringPage cursor to pass back in when fetching the next page

convex_document_deltas

List documents that changed after a snapshot or previous delta cursor. Deleted documents are returned with a _deleted flag. Requires streaming export, available on Convex paid plans.

Entrée

ParamètreTypeObligatoireDescription
deploymentUrlstringOuiConvex deployment URL (e.g., https://your-deployment.convex.cloud\)
deployKeystringOuiConvex deploy key from the dashboard Settings page
cursorstringOuiTimestamp cursor to read deltas after. Use the snapshot value from List Documents or the cursor from a previous Document Deltas page.
tableNamestringNonTable to read deltas from. Omit to read deltas from all tables.

Sortie

ParamètreTypeDescription
documentsarrayChanged documents, each including _table and _ts fields
hasMorebooleanWhether more delta pages remain
cursorstringCursor to pass back in when fetching the next page of deltas

On this page