This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-13
Channels
- # announcements (2)
- # aws (4)
- # babashka (14)
- # beginners (186)
- # cljdoc (2)
- # cljsrn (7)
- # clojure (56)
- # clojure-austin (1)
- # clojure-australia (2)
- # clojure-europe (46)
- # clojure-france (5)
- # clojure-nl (16)
- # clojure-norway (7)
- # clojure-spec (76)
- # clojure-sweden (15)
- # clojure-uk (13)
- # clojurescript (60)
- # code-reviews (2)
- # conjure (8)
- # datascript (1)
- # datomic (4)
- # depstar (10)
- # emacs (9)
- # events (4)
- # exercism (1)
- # fulcro (36)
- # graalvm (8)
- # introduce-yourself (3)
- # jobs-discuss (2)
- # kaocha (14)
- # lsp (1)
- # minecraft (8)
- # new-channels (1)
- # off-topic (3)
- # pathom (6)
- # polylith (9)
- # re-frame (48)
- # shadow-cljs (5)
- # specter (26)
- # tools-deps (19)
- # vim (2)
- # vscode (1)
Super newbie question: I have a schema where I need a custom attibute in Datomic Cloud:
[
{
:db/ident :user/id
:db/valueType :db.type/keyword
:db/unique :db.unique/identity
:db/cardinality :db.cardinality/one
}
{:db/ident :user/name
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:field/label "Name"
}
]
the result:
; Execution error (ExceptionInfo) at datomic.client.api.async/ares (async.clj:58).
; Unable to resolve entity: :field/label
:field/label
must itself be declared in the schema
{:db/ident :field/label
:db/valueType :db.type/string
...}
The error comes from trying to set the value of an attribute, in this case :field/value
, which Datomic is not yet aware of
Hi @U024X3V2YN4 , thanks 🙂