This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-18
Channels
- # adventofcode (40)
- # aleph (8)
- # announcements (2)
- # beginners (27)
- # calva (3)
- # cider (3)
- # clj-kondo (21)
- # cljsrn (9)
- # clojure (122)
- # clojure-europe (38)
- # clojure-france (93)
- # clojure-nl (2)
- # clojure-spec (1)
- # clojure-uk (32)
- # clojuredesign-podcast (1)
- # clojurescript (12)
- # community-development (11)
- # conjure (14)
- # cursive (11)
- # datalog (7)
- # depstar (21)
- # emacs (31)
- # fulcro (85)
- # google-cloud (1)
- # graalvm (1)
- # graphql (7)
- # jobs-discuss (3)
- # joker (1)
- # kaocha (14)
- # pathom (2)
- # re-frame (1)
- # reagent (1)
- # reitit (6)
- # reveal (50)
- # shadow-cljs (64)
- # spacemacs (8)
- # tools-deps (5)
So I was trying ^that out, right. I have a mutation that has a single input (relay style) which is an input type that has fields with directives. Say:
mutation {
createUser(input: CreateUserInput!): CreateUserPaylaod
}
input CreateUserInput {
userName: String! @myDirective
}
Now, looking through the selection (e.g. executor/selection
), I’m trying to find this userName
field with its directive. However, in (:field-definition selection)
I can find that createUser
has an argument named input
with a type of CreateUserInput
, but I can’t seem to find the definition of this input type, and consequently the directive on this userName
input type field. Is that not yet exposed ^^?➕ 3
(I’m just exploring what is currently already possible with directives in lacinia)
Given the context, I can seem to find it in the schema, e.g.
(:CreateUserInput (:com.walmartlabs.lacinia.constants/schema context))
But, as far as I can tell (am I missing something obvious here?), I can’t find it in the selection part of that same context (the subselection I get from executor/selection
)That’s cool tho, I think I may be able to reconstruct it via the schema, and the knowledge that inputs are guaranteed non recursive