Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

[tx] Handle _reverse attribute assertions (back references) #187

@ncalexan

Description

@ncalexan

An assertion of the form

[[:db/add IDENT :db/_ref-attr ENTID]]

is equivalent to the assertion

[[:db/add ENTID :db/ref-attr IDENT]]

That is, this allows to add back-references. It's particularly useful using the map shorthand of #180: for example, one can add and install a new attribute into the :db.part/db using:

[{:db/id #id-literal[-1]
    :db/ident :my/ident
    :db/valueType :db.type/long
    :db.install/_attribute :db.part/db}]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions