This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-10
Channels
- # announcements (2)
- # babashka (20)
- # beginners (381)
- # calva (16)
- # chlorine-clover (21)
- # cider (1)
- # clj-kondo (18)
- # cljs-dev (107)
- # cljsrn (2)
- # clojure (161)
- # clojure-dev (5)
- # clojure-europe (2)
- # clojure-losangeles (3)
- # clojure-nl (3)
- # clojure-uk (35)
- # clojurescript (22)
- # conjure (48)
- # cursive (8)
- # datascript (11)
- # datomic (6)
- # figwheel-main (10)
- # fulcro (85)
- # hoplon (112)
- # jobs (1)
- # kaocha (5)
- # luminus (5)
- # malli (1)
- # off-topic (96)
- # onyx (1)
- # pedestal (1)
- # perun (1)
- # reagent (5)
- # reitit (1)
- # shadow-cljs (34)
- # specmonstah (1)
- # sql (6)
- # tools-deps (3)
- # xtdb (23)
Is this a known pull
bug?
; schema
#:db {:ident :test/kws :valueType :db.type/keyword :cardinality :db.cardinality/many}
#:db {:ident :test/bools :valueType :db.type/boolean :cardinality :db.cardinality/many}
; then I transact this entity
{:db/ident :my/test1 :test/bools [true false] :test/kws [:yes :no]}
; the I pull it (either in a query or with d/pull
=> (d/pull conn '[*] :my/test1)
{:db/id 17592188897678, :db/ident :my/test1, :test/bools [true], :test/kws [:no :yes]} ; <- false filtered out
; funnier
{:db/ident :my/test2 :test/bools [false]}
=> (d/pull (d/db conn) '[*] :my/test2)
{:db/id 17592188897682, :db/ident :my/test2, :test/bools nil} ; <- a nil
I have hit two serious bugs(that have already been fixed) while playing with datomic. My conclusion is that is still too immature to be trusted with production critical data. Don't know how some companies get by with it.