Fork me on GitHub
#pathom
<
2021-03-25
>
paul93122423:03:06

@souenzzo I tried it both ways now, and I have a problem with the backtick.

(edn/read-string "[`(a 1)]")
Execution error at user/eval158 (REPL:1).
Invalid leading character: `
user=>

souenzzo23:03:06

backtick also a clojure thing, not a edn thing.

paul93122423:03:11

Yes, and I want to convert a string of a mutation , so I can send it to pathom. Is there any other way? I check out edaname now.

souenzzo23:03:47

(edn/read-string "[(a 1)]") => [(a 1)]

souenzzo23:03:17

(= (edn/read-string "[(a {:b 42})]")
   '[(a {:b 42})]
   `[(~'a ~{:b 42})]
   (vector (list (symbol "a")
                 (hash-map (keyword "b")
                           42))))
=> true

paul93122403:03:52

Thank you, I found my misconceptions!

✔️ 3