@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=>
backtick also a clojure
thing, not a edn
thing.
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.
(edn/read-string "[(a 1)]") => [(a 1)]
(= (edn/read-string "[(a {:b 42})]")
'[(a {:b 42})]
`[(~'a ~{:b 42})]
(vector (list (symbol "a")
(hash-map (keyword "b")
42))))
=> true
Thank you, I found my misconceptions!