Skip to content

Referencing other entities #10

Closed
Closed
@frankiesardo

Description

I apologise if it's just me, but by reading the docs it's not very clear how to reference other entities inside datascript.

[
 {:db/id -10
  :name "C1"
  :value "foo"} 
 {:db/id -11
  :name "C2"
  :value "bar"}      
 {:db/id -1
  :name  "E"
  :components [-10, -11]}
]

How do I reference the generated ids 10 and 11 inside the components vector?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions