wikidb.set_fields

wikidb

set_fields(ctx, key, fields, opts) -> ok, changes_or_err

Change schema fields without rewriting the document

On success the second value lists one { field, from, to } record per field that moved. A call that moves nothing writes nothing, not even updated, and answers true, {}. opts.author names who the events carry.

The meta record is written first and the events last. A refused event leaves the field changed with no event behind it.