Skip to content

Auto-record data on document create / update #1533

@wohali

Description

@wohali

@wohali:
Think: timestamp, CouchDB username. Would be added by the coordinating node in the cluster.

@akircher:
Could auto-recording timestamp and username be solved more generically? Such as a "calculated field" function. This function could return a timestamp, username, or anything else that could be calculated from the doc (and maybe the req) object. I know this would be very helpful with my current project.

@wohali:
That is doable today via update handlers, and necessarily requires a JS-based implementation, which is not always desirable for performance reasons.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions