Convex · Schema

FunctionRequest

BackendDatabaseFunctionsReal-TimeReactiveServerlessTypeScript

Properties

Name Type Description
path string The fully-qualified function path in the format "module:functionName" (e.g. "messages:list"). The module name maps to the file path within the convex/ directory.
args object Named arguments to pass to the function as a JSON object. The keys and value types must match the function's declared parameter types.
format string Output format for the response value. Currently only "json" is supported and is also the default when omitted.
View JSON Schema on GitHub

JSON Schema

convex-functionrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/FunctionRequest",
  "title": "FunctionRequest",
  "type": "object",
  "required": [
    "path",
    "args"
  ],
  "properties": {
    "path": {
      "type": "string",
      "description": "The fully-qualified function path in the format \"module:functionName\" (e.g. \"messages:list\"). The module name maps to the file path within the convex/ directory.",
      "pattern": "^[a-zA-Z0-9_/]+:[a-zA-Z0-9_]+$",
      "example": "messages:list"
    },
    "args": {
      "type": "object",
      "description": "Named arguments to pass to the function as a JSON object. The keys and value types must match the function's declared parameter types.",
      "additionalProperties": true
    },
    "format": {
      "type": "string",
      "description": "Output format for the response value. Currently only \"json\" is supported and is also the default when omitted.",
      "enum": [
        "json"
      ],
      "default": "json"
    }
  }
}