Fork me on GitHub

Hi, this is a conditional reader, not a pathom problem but just wondering if anyone knows what might be causing this. I’ve a .cljc file like so

  #?@(:clj  [[com.wsscode.pathom.connect :as pc :refer [defresolver defmutation]]

; further down in the ns
     (defresolver all-messages [{:keys [db] :as env} input]
       {::pc/output [{:all-messages [:message/id :message/text :message/author]}]}
server is fine, but my client shadow-cljs build is breaking, saying that ::pc/output is an invalid kw. can’t for the life of me figure out why the cljs build is even ‘seeing’ that


its a reader thing. the code must remain readable but if CLJS doesn't have that alias it is not


breaks in CLJ too


if it goes the other way. gotcha