tonsky / datascript-transit

Transit handlers for DataScript database and datoms
Eclipse Public License 1.0
104 stars 7 forks source link

How to extend datascript-transit serialization types? #7

Open theronic opened 5 years ago

theronic commented 5 years ago

When I try to write a cljs-time object, I get "Error: Cannot write". E.g.

[#datascript/Datom [15 :message/thread 14 536870921 true] #datascript/Datom [15 :message/timestamp #object[Object 20190929T091725] 536870921 true] #datascript/Datom [15 :message/text "arstarst" 536870921 true]] image

How can I extend de-/serialization capabilities of datascript-transit to work with more types?

tonsky commented 5 years ago

Add transit handlers for cljs-time objects?