This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-25
Channels
- # bangalore-clj (2)
- # beginners (50)
- # boot (21)
- # cljs-dev (2)
- # cljsrn (1)
- # clojure (93)
- # clojure-russia (5)
- # clojure-spec (22)
- # clojure-uk (3)
- # clojurescript (24)
- # data-science (4)
- # datomic (1)
- # events (2)
- # fulcro (46)
- # graphql (9)
- # hoplon (16)
- # lumo (42)
- # off-topic (3)
- # perun (2)
- # protorepl (1)
- # re-frame (10)
- # reagent (12)
- # ring (1)
- # ring-swagger (1)
- # shadow-cljs (12)
- # specter (16)
- # unrepl (10)
Is there a way, in Lacinia, to attach information from the request headers to either the args or context map? I have a user ID being passed in through the request headers but can’t access it from within the resolvers. I’m using Lacinia and lacinia-pedestal almost line for line with the tutorial
(ns user
(:require
[clojure-game-geek.schema :as s]
[com.walmartlabs.lacinia :as lacinia]))
(def schema (s/load-schema))
(defn q
[query-string]
(lacinia/execute schema query-string nil nil))