This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-30
Channels
- # announcements (8)
- # babashka (102)
- # beginners (312)
- # calva (9)
- # clj-kondo (9)
- # cljfx (7)
- # clojure (126)
- # clojure-europe (52)
- # clojure-nl (2)
- # clojure-norway (2)
- # clojure-spec (5)
- # clojure-uk (4)
- # clojurescript (13)
- # conjure (5)
- # cursive (5)
- # datalog (18)
- # datomic (8)
- # emacs (1)
- # events (3)
- # fulcro (16)
- # graphql (2)
- # gratitude (1)
- # helix (16)
- # inf-clojure (17)
- # introduce-yourself (9)
- # java (11)
- # lambdaisland (3)
- # leiningen (3)
- # lsp (8)
- # malli (3)
- # membrane (7)
- # missionary (26)
- # nextjournal (1)
- # off-topic (19)
- # pathom (3)
- # polylith (13)
- # portal (16)
- # reagent (39)
- # reitit (2)
- # releases (23)
- # remote-jobs (1)
- # shadow-cljs (40)
- # specter (3)
- # sql (12)
- # tools-deps (8)
- # tree-sitter (1)
- # vim (3)
- # web-security (6)
- # xtdb (16)
Is there a RAD attribute type for a collection? Something that could be used for a set like :account/phone-numbers
, where it doesn't need to exist in some other model and get accessed as a :ref. :enum
sounds more like a set of multiple choice options, so I guess that's not it.
I'm on xtdb but I'd guess the intended behaviour is similar, if supported. I will try that out. I thought :cardinality was just intended for :ref types, but the docs are clear: > Supported when the type of the attribute is :ref, and some database adapters may support it on other types. Thanks @U0CKQ19AQ!
Really it is up to the db adapter…SQL has array types on columns, for example. You can always encode what you want somehow. I don’t know enough about XTDB, but can’t you just put a set on an attribute? {:account/phone-numbers #{…}}
In the backend that's exactly what intending to do. The storage part is clear. And I can always just make it a ref type and have the resolver return the set stored on that key in the document. I wasn't sure if any of the base RAD attribute types would align with it properly. I guess :string with :many should be the way to use a set on the attribute.
I don't think so since eg a general sql DB wouldn't know how to store that. But you can create your own types, I suspect?
Not something I've done before but I suspect that's the way forward. Just wanted to check if there was a common approach people are using already.
I'm new to fulcro and I'm trying to get the fulcro-template running. When I run (start)
in the developments ns in the repl the chromium console gives me GET
did you compile the front-end with shadow? https://book.fulcrologic.com/#_build_it
should see something built at
resources/public/js/main/main.js
if you’re using the default set-upThat was it, thanks. I missed half a step in the README
Welcome to Fulcro! I ma glad Tyler was able to help you. PRs making the steps harder to miss are always welcome 🙂 You being a newbie, I would like to pick your brain if you will 🙂 How did you come to Fulcro? And how have your learned it so far? 🙏