Datomic newbie here. Playing with various valueTypes and can’t get tuple data type to work.
Here’s how defined the schema:
(d/transact conn {
:tx-data [{
:db/ident :df/Errors
:db/valueType :db.type/tuple
:db/tupleType :db.type/string
:db/cardinality :db.cardinality/many}]})
This worked. However, I can’t figure out how to enter sample data. I tried
(d/transact conn {:tx-data [{
:df/Errors ["Error-code" "sample error message"]}]})
But it gives an error:
Invalid tuple value
As per docs, the tuple value is a vector with 2 to 8 elements. So, not sure what I’m doing wrong. Please help.