Word

change

The only thing that writes a caller's data. It is written with set, one write or a list, or with run, whose whole is one all-or-nothing write.

Example

TypeScript
export const addNote = change('addNote', {
  access: 'signedIn',
  set: notes.add({ body: input('body') }),
})

Options

OptionMeans
option.change.accessWho may call the change.
option.change.setThe writes of the change, as plain data.
option.change.runThe function that makes the change.
option.change.aboutOne sentence on what the change is for.
option.change.inputThe fields that a call gives.
option.change.outputThe type of the answer.
option.change.dangerWhether AIs and MCP callers ask a person before the change runs.
option.change.offerThe outside doors the change is offered to.
option.change.deprecatedMarks the change as going away, in the API description and in its answers.
option.change.systemGives the change full access, with the reason.
option.change.touchesThe tables that a raw SQL write of the change writes.
option.change.countByFor whom the calls of the change are counted.
option.change.everywhereAnswers the change only once every machine of the app holds it.
option.change.plainHolds the change to the plain form.
option.change.wasThe old name of the change, where it was renamed.

Returns

A function, markPaid(input), which answers at once. A call is handed to the engine.

Errors

code.T0010: it was called with no engine: nothing stands in the runtime slot.

See also

topic.words