Skip to main content

Refusals

A refused call answers a Result with one of the twelve host codes or one of the function’s declared codes. A host code may carry a public reason, and an app code the data its refuses declares. See Results and refusals, which lists every public reason.

Write conflict

A mutation’s reads establish the facts on which its writes depend. When concurrent changes invalidate those reads, the engine may retry the transaction. Keep dependent reads narrow. A mutation that reads a whole table acquires a wider dependency than one that reads a row by ID.

Undefined validator

An undefined validator can come from a circular import. Keep schema, validators, and functions arranged so the schema does not import handlers that import the schema again.