This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-09
Channels
- # announcements (4)
- # beginners (44)
- # boot (15)
- # calva (66)
- # cider (66)
- # clojure (75)
- # clojure-austin (4)
- # clojure-europe (2)
- # clojure-finland (1)
- # clojure-italy (3)
- # clojure-nl (10)
- # clojure-russia (3)
- # clojure-sg (1)
- # clojure-uk (109)
- # clojurescript (18)
- # datomic (8)
- # emacs (1)
- # figwheel-main (1)
- # fulcro (5)
- # jobs (1)
- # jobs-discuss (8)
- # kaocha (7)
- # leiningen (11)
- # luminus (2)
- # off-topic (69)
- # pathom (5)
- # re-frame (7)
- # reagent (4)
- # reitit (18)
- # ring-swagger (3)
- # shadow-cljs (123)
- # spacemacs (1)
- # sql (35)
- # tools-deps (89)
- # uncomplicate (3)
- # vim (6)
- # yada (3)
@currentoor I had the same issue, and while I don't recall the exact details of it, I solved it using clojure.walk/prewalk and checking for java.util.List inside my db fn:
(clojure.walk/prewalk
(fn [e] (cond (and (instance? java.util.List e) (not (vector? e))) (vec e)
:else e))
x)
@currentoor I believe I've also encountered java.util.Arrays$ArrayList, at least that is what my tests are using to reproduce the behaviour encountered in production. I'm using e.g. (java.util.Arrays/asList (into-array [1 2 3])) in my tests to test the convert function
@UGJE0MM0W thanks
I have a service that I use, and I want to store it's response (EDN) under a particular key in Datomic. AFAIK Datomic doesn't currently support this document like storage? How should I do something like this? Store them externally, and put their IDs in Datomic?
The API response is highly dynamic, doesn't use namespaced keywords, and most of the time, I don't foresee needing to use Datalog into it.
I'm fine with it being an opaque value.