Verb Function
A Verb Function is the code that runs one Verb, named for its Noun and Verb, so the file name binds it with no registration.
| Property | Value |
|---|---|
| Path | nouns/ |
| Holds | Function |
| Kind | file |
| Leaders | db-first, git-first |
| Team | Engineering Team |
| Written by | Change.merge |
| Compiled by | SoftwareBuilder |
Example
nouns/ in a Startup repository. Closewise, a sample business, declares a Close Noun.
export default async (close: Close, input: CloseReconcileInput, $: $) => {
const open = await $.Transaction.list({ where: `receipt = null and settledAt <= '${input.through}'` })
return $.Close.update({ id: close.$id, balanced: open.length === 0 })
}Exports
| Export | Kind | Type |
|---|---|---|
default | default | (thing: |
Signature
(thing: Noun, input: NounVerbInput, $: $) => Promise<Output>Generates
SoftwareBuilder compiles it into these records, Verbs and routes.