This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-10
Channels
- # announcements (8)
- # aws-lambda (4)
- # babashka (60)
- # beginners (65)
- # braveandtrue (5)
- # chlorine-clover (3)
- # cider (10)
- # clj-kondo (2)
- # cljdoc (2)
- # cljfx (32)
- # cljsrn (5)
- # clojure (198)
- # clojure-berlin (10)
- # clojure-europe (22)
- # clojure-france (1)
- # clojure-losangeles (33)
- # clojure-nl (3)
- # clojure-norway (22)
- # clojure-uk (35)
- # clojurescript (12)
- # code-reviews (14)
- # core-typed (1)
- # cursive (56)
- # datomic (13)
- # depstar (7)
- # emacs (1)
- # events (1)
- # figwheel-main (3)
- # fulcro (30)
- # graphql (15)
- # helix (1)
- # jobs (5)
- # juxt (6)
- # kaocha (14)
- # klipse (2)
- # malli (12)
- # off-topic (88)
- # portal (4)
- # re-frame (3)
- # reagent (5)
- # shadow-cljs (6)
- # specter (6)
- # sql (73)
- # tools-deps (15)
- # windows (4)
Hi -- how do I get the parsed query from the request? I need to check it as @hlship described above.
It's is placed onto the :request object as key :parsed-lacinia-query. (see https://github.com/walmartlabs/lacinia-pedestal/blob/78077efc551d2fc1744f3b17c4ddf9ee3616668d/src/com/walmartlabs/lacinia/pedestal2.clj#L97)
(defn ^:private interceptors
[schema]
(-> (p2/default-interceptors schema nil)
(inject user-info-interceptor ::after ::p2/inject-app-context)))
Yes, I believe that is correct; that's the inject-app-context
keyword in the p2
namespace (alias for com.walmartlabs.lacinia.pedestal2
). See https://walmartlabs.github.io/apidocs/lacinia-pedestal/com.walmartlabs.lacinia.pedestal2.html#var-default-interceptors for the default list/names.