This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-07
Channels
- # beginners (166)
- # cider (6)
- # cljs-dev (12)
- # cljsrn (64)
- # clojure (71)
- # clojure-chicago (1)
- # clojure-spec (14)
- # clojure-uk (2)
- # clojurescript (25)
- # datomic (2)
- # docs (1)
- # duct (1)
- # emacs (4)
- # fulcro (5)
- # graphql (3)
- # java (46)
- # mount (5)
- # off-topic (29)
- # onyx (1)
- # portkey (10)
- # re-frame (12)
- # remote-jobs (1)
- # shadow-cljs (46)
- # spacemacs (1)
- # specter (4)
- # vim (2)
[Lacinia Question] : Is it possible to pass custom data to application context (`ctx`) when the schema is being compiled ?
I want to make a log function available to every resolver via ctx
.
Actually, you provide an initial context (possibly nil) when you invoke execute
. Lacinia will add additional keys it needs to the context, but otherwise it passes through. This is one way to pass such dependencies around.
@shivekkhurana yes, you can pass anything you like in the application context -that's its purpose
💯 4