sixthnormal / clj-3df

Clojure(Script) client for Declarative Dataflow.
Eclipse Public License 2.0
328 stars 13 forks source link

UUID serialization for entity id's #42

Closed 7tupel closed 5 years ago

7tupel commented 5 years ago

At this point it's not possible to use UUIDs as entity ID in transaction most likely because of wrong serialization.

E.g.

(df/transact db [{:db/id   (java.util.UUID/randomUUID)}])

will cause the following error in 3df:

ERROR 2019-05-28T15:18:01Z: declarative_server::networking: [IO] Error { category: "df.error.category/incorrect", message: "unknown variant `\"1d2c0533-6e84-4f2a-bedd-d1389d7ec47d\"`, expected one of `Aid`, `String`, `Bool`, `Number`, `Rational32`, `Eid`, `Instant`, `Uuid` at line 1 column 228" }
comnik commented 5 years ago

Supported now, as of 69df4f8ae4447404b584aa432904f7416ec311f5