Hey all - beginner question I'm going through the book, and cannot get the parameters section to work I found https://github.com/wilkerlucio/pathom/blob/3242250e03f5f6b4c5faae1162e6358e9c9a36c1/docs-src/modules/ROOT/examples/com/wsscode/pathom/book/connect/parameters.cljs But I always get:
Execution error (ExceptionInfo) at com.wsscode.pathom.parser/expr->ast (parser.cljc:104).
Invalid expression
Running the parser as specified in the comment block
I'm using pathom version 2.2.31, clojure 1.10, etc. -- am I missing something obvious?@tylernisonoff
Where is (<!! (parser {} [(::instruments {:sort :instrument/brand})]))
Should be (<!! (parser {} '[(::instruments {:sort :instrument/brand})]))
When you do [(:ident {:param 42})]
on Clojure/REPL it actually evaluates to [nil]
, which is a invalid EQL
On Clojure/REPL, when you need "a EDN list", like (1 2 3)
you need to quote
it.
ahhh got it, duh 🙂 Thank you! Think it's worth me submitting a PR to update this file in the examples?
added a small comment
:face_palm: thanks for catching -- updated
The "re-request review" button doesn't seem to do anything for me.. :thinking_face: :man-shrugging:
@souenzzo when you can, mind reviewing the PR again?
Just @wilkerlucio can merge
PR are welcome 🙂 cc @wilkerlucio
cool will do!
https://github.com/wilkerlucio/pathom/pull/169 I included a note in the docs about this in the PR, but can remove that if it's unwarranted. (or happy to re-word it)