This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-04
Channels
- # announcements (6)
- # beginners (207)
- # calva (39)
- # cestmeetup (35)
- # chlorine-clover (36)
- # clj-kondo (15)
- # clj-together (1)
- # cljsrn (2)
- # clojure (110)
- # clojure-europe (8)
- # clojure-italy (9)
- # clojure-nl (2)
- # clojure-uk (5)
- # clojurescript (61)
- # conjure (4)
- # cursive (1)
- # datalog (3)
- # datomic (22)
- # emacs (8)
- # events (2)
- # figwheel-main (11)
- # fulcro (23)
- # graalvm (16)
- # graphql (1)
- # helix (4)
- # jobs (5)
- # jobs-discuss (4)
- # malli (3)
- # mid-cities-meetup (13)
- # off-topic (58)
- # pathom (12)
- # re-frame (30)
- # reagent (45)
- # reitit (1)
- # reveal (7)
- # sci (2)
- # shadow-cljs (173)
- # spacemacs (1)
- # sql (1)
- # test-check (5)
- # xtdb (13)
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?
PR are welcome 🙂 cc @U066U8JQJ
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)
:face_palm: thanks for catching -- updated
The "re-request review" button doesn't seem to do anything for me.. :thinking_face: :man-shrugging:
@U2J4FRT2T when you can, mind reviewing the PR again?