-
Notifications
You must be signed in to change notification settings - Fork 312
Closed
Description
I'm working on some code that uses composite tuples. Looking at the datomic documentation, I was trying to define such a tuple as
{:db/valueType :db.type/tuple
:db/tupleAttrs [:my/att1 :my/att2]
:db/unique :db.unique/identity}
But that fails with
Bad attribute specification for ..., expected one of #{:db.type/ref}
Reading the datascript docs more closely it seems that I must not use db/valueType here; composite attributes are defined by having a :db/tupleAttrs attribute in their schema.
Is this difference in behavior intentional? I wouldn't mind providing a patch to allow a db.type/tuple in this specific case if that's a welcome addition.
Metadata
Metadata
Assignees
Labels
No labels