Fork me on GitHub
#pathom
<
2019-02-23
>
pvillegas1215:02:53

Trying to make this query [{[:company/by-id 43078865576263770] [:db/id :company/name]} :com.wsscode.pathom/trace] and my resolver is defined as

(defresolver entity-resolver
  "Resolves query for an entity"
  [{:keys [conn tx] :as env} {:keys [company/by-id] :as input}]
  {::pc/input  #{:company/by-id}
   ::pc/output [:db/id :company/name]}
  (d/pull (d/db conn) '[*] by-id))

pvillegas1215:02:09

However, I’m not getting any data back from the UI / fulcro query

pvillegas1215:02:36

(and I do have this data in the database, I am printing the result of (d/pull ...) and getting data back

hmaurer17:02:22

@pvillegas12 did you solve this?

pvillegas1217:02:53

Same error as in #fulcro

pvillegas1217:02:02

😄 thanks though

hmaurer17:02:08

did you try to run the query in Fulcro Inspect?

pvillegas1217:02:26

yup, the datomic ids were getting parsed incorrectly on the way

pvillegas1217:02:31

had various problems with the datomic ids