This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-30
Channels
- # announcements (4)
- # babashka (8)
- # beginners (124)
- # calva (13)
- # cider (10)
- # circleci (6)
- # clj-kondo (193)
- # cljdoc (1)
- # cljs-dev (4)
- # clojure (50)
- # clojure-europe (28)
- # clojure-serbia (1)
- # clojure-spec (22)
- # clojure-uk (30)
- # clojurescript (11)
- # clojureverse-ops (3)
- # community-development (1)
- # conjure (5)
- # cursive (1)
- # datomic (11)
- # depstar (1)
- # events (2)
- # fulcro (7)
- # graalvm (2)
- # graphql (10)
- # helix (43)
- # hyperfiddle (14)
- # introduce-yourself (6)
- # jobs (2)
- # jobs-discuss (14)
- # kaocha (4)
- # luminus (2)
- # malli (24)
- # meander (6)
- # off-topic (4)
- # pathom (1)
- # polylith (13)
- # re-frame (6)
- # releases (1)
- # remote-jobs (1)
- # sci (14)
- # shadow-cljs (209)
- # tools-deps (30)
- # xtdb (26)
Oeh nice, the satisfies? problem I’ve stumbled over sometimes too. Clever, using early returns for values you know wont satisfy.
Excited to see a perf fix for satisfies?
!
Our codebase chokes on the latest because (selection/field-name (executor/selection ctx))
is no longer supported:
java.lang.IllegalArgumentException: No implementation of method: :field-name of protocol: #'com.walmartlabs.lacinia.selection/FieldDef found for class: com.walmartlabs.lacinia.parser.FieldSelection
Is this no longer supported, or did we stumble on a early bug?I’m actually not sure why that worked before; how about (-> ctx selection/field selection/field-name) ?
> No implementation of method: :field of protocol: #'com.walmartlabs.lacinia.selection/FieldSelection found for class: clojure.lang.PersistentArrayMap
Although this works: (-> ctx executor/selection selection/field selection/field-name)
Right, my answer was off the top of my head and wrong. So you get the selection from the context, and because you are in a field resolver, you know its a field selection and from there you can go to the field to extract the field name.