Fork me on GitHub
#pathom
<
2020-10-30
>
beders19:10:30

hello there, quick question: Are parameters in Pathom EQL supported? I’m using this query: [{(:account/all {:search "bubu"}) [:account/name]}] but are getting an ‘Invalid expression’ exception

beders19:10:11

the example in the manual about Parameters doesn’t use joins

beders19:10:13

(this is on 2.3.0-alpha16)

wilkerlucio19:10:40

@beders a common pitfall is forgetting to quote the list, otherwise instead of sending it, you make Clojure evaluate, so in terms of Clojure code, you need to write as: [{'(:account/all {:search "bubu"}) [:account/name]}]

beders19:10:05

oh, jesus, you are right 🙂

beders19:10:12

thanks for the quick response!

👍 6
beders19:10:43

I’m getting blind to list expressions

beders19:10:10

our team of 3 is discovering the wonders of pathom and love it!

❤️ 12