Skip to content

Primitive OpId datatype to reference Automerge operations/objects #402

Closed
@rmst

Description

Currently, Automerge operations and objects can be referred to by their OpId which is a string of the form ${counter}@${actorId}. To refer to these ids within an Automerge document (e.g. for linking between notes) it might be nice to introduce a dedicated primitive datatype in the binary format. This would allow Automerge to automatically update the ids in case their format changes. The interface could look as follows.

Automerge.change(doc0, doc => {
  doc.linkToNote = OpId("3@actorId")
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions