This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-10
Channels
- # asami (41)
- # babashka (24)
- # beginners (48)
- # calva (41)
- # cider (10)
- # clj-commons (20)
- # clj-kondo (2)
- # cljdoc (8)
- # clojure (131)
- # clojure-australia (4)
- # clojure-europe (17)
- # clojure-hungary (2)
- # clojure-india (2)
- # clojure-nl (3)
- # clojure-uk (1)
- # clojurescript (12)
- # community-development (6)
- # core-logic (4)
- # cursive (11)
- # datomic (22)
- # emacs (25)
- # events (1)
- # exercism (2)
- # fulcro (30)
- # helix (5)
- # honeysql (6)
- # hugsql (3)
- # integrant (12)
- # introduce-yourself (4)
- # lsp (5)
- # malli (5)
- # nextjournal (31)
- # off-topic (4)
- # pedestal (3)
- # portal (51)
- # reitit (33)
- # remote-jobs (1)
- # shadow-cljs (12)
- # sql (10)
- # vim (7)
- # xtdb (37)
I'm trying to get the properties of a map entry, and struggling.
For example, given the following schema, I'd like to access the properties of :widget/id
(ie. get back {:foo/bar 123}
):
(def Widget
[:map
[:widget/id {:foo/bar 123} uuid?]])
I thought this would work, but it returns an invalid-schema error:
(m/properties (m.util/find Widget :widget/id))
Any suggestions?@U0CLNM0N6 it returns the vector of [key ?props children]
as a vector:
(def Widget
[:map
[:widget/id {:foo/bar 123} uuid?]])
(mu/find Widget :widget/id)
; => [:widget/id #:foo{:bar 123} uuid?]
(m/children Widget)
; => [[:widget/id #:foo{:bar 123} uuid?]]