def

func:commit

commit(diffs)

Commit one or more diffs to the folio database. The argument may be one of the following:

If one diff is passed, return the new record. If a list of diffs is passed return a list of new records.

This is a synchronous blocking call which will return the new record or records as the result.

Examples:

// add new record
newRec: commit(diff(null, {dis:"New Rec!"}, {add}))

// add someTag to some group of records
readAll(filter).toRecList.map(r => diff(r, {someTag})).commit

meta

supertypes

feature

Feature namespace of definitions formatted as feature:name

    func

Axon function