This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-05-27
Channels
- # announcements (8)
- # babashka (11)
- # beginners (34)
- # clerk (11)
- # clj-http (2)
- # clojure (5)
- # clojure-europe (9)
- # clojure-gamedev (1)
- # clojure-nl (1)
- # clojure-norway (17)
- # clojure-poland (1)
- # clojure-sweden (5)
- # clojure-uk (9)
- # clojurescript (17)
- # core-typed (12)
- # cursive (4)
- # datahike (4)
- # datalevin (2)
- # datomic (7)
- # emacs (8)
- # events (8)
- # graphql (5)
- # gratitude (1)
- # hyperfiddle (19)
- # jobs-discuss (4)
- # leiningen (4)
- # lsp (21)
- # meander (2)
- # off-topic (9)
- # play-clj (1)
- # polylith (10)
- # releases (1)
- # sci (18)
- # vim (10)
how can I inject a resolver to an interface field? Doing (inject-resolvers {:MyInterface/my-field f})
returns a inject error: not found
error
Shouldn't the resolver be injected into concrete types? Why does the interface need a resolver?
In this particular case, all the concrete types share that field. I'm injecting the resolver to all of the concrete types, but I'd prefer a less verbose solution.
It seems more reasonable to me to prevent the resolver from being attached to the interface. But yes, it’s edn. You can extend it to have :base-objects and automate the injection.
@U7JHWBCS0 fair enough, thanks