Fork me on GitHub
#datomic
<
2022-04-14
>
nottmey15:04:00

What am I missing? I have

{:db/ident       :simple1/position+offset
 :db/valueType   :db.type/tuple
 :db/tupleTypes  [:db.type/long :db.type/long]
 :db/cardinality :db.cardinality/many
 :db/noHistory   true}
and I’am doing this (like described https://docs.datomic.com/cloud/schema/schema-reference.html#heterogeneous-tuples)
(d/transact conn {:tx-data [{:db/id                   114349209391875
                             :simple1/position+offset [0 6]}]})
but it throws this error 😕 > Execution error (IllegalArgumentException) at datomic.core.db/coerce-tuple (db.clj:2800). > Don’t know how to create ISeq from: java.lang.Long

ghadi15:04:05

you have a cardinality many tuple

ghadi15:04:19

but you are inputting a single tuple

nottmey15:04:29

ahhh yes, that’s different, I expected it to work like in the example :man-facepalming:

ghadi15:04:37

so it is looking for a Seq where it sees a 0

👌 1
thanks3 1