This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-07
Channels
- # 100-days-of-code (13)
- # beginners (12)
- # business (6)
- # cider (6)
- # cljdoc (9)
- # cljs-dev (1)
- # cljsrn (4)
- # clojars (4)
- # clojure (31)
- # clojure-dev (12)
- # clojure-uk (11)
- # clojurescript (16)
- # cursive (1)
- # datascript (4)
- # datomic (10)
- # editors (1)
- # figwheel-main (3)
- # graphql (10)
- # lein-figwheel (29)
- # off-topic (1)
- # pedestal (1)
- # re-frame (31)
- # reitit (3)
- # shadow-cljs (27)
- # slack-help (5)
- # spacemacs (1)
- # yada (5)
Hey folks, I have a datascript DB with the following datoms:
:datoms [[1 :deck-name :teen-titans 536870913] [2 :deck-list "confrontations" 536870914] [2 :deck-list "crisis-1" 536870914] [2 :deck-list "crisis-2" 536870914] [2 :deck-list "crisis-3" 536870914] [2 :deck-list "crossover-1" 536870914] [2 :deck-list "crossover-2" 536870914] [2 :deck-list "crossover-3" 536870914] [2 :deck-list "crossover-4" 536870914] [2 :deck-list "crossover-5" 536870914] [2 :deck-list "crossover-6" 536870914] [2 :deck-list "dc-comics" 536870914] [2 :deck-list "forever-evil" 536870914] [2 :deck-list "heroes-unite" 536870914] [2 :deck-list "multiverse" 536870914] [2 :deck-list "promo" 536870914] [2 :deck-list "rivals-1" 536870914] [2 :deck-list "teen-titans" 536870914]]
I put them in there as a list. How do I match them and get them back out?
I've tried (datascript.core/q '[:find ?e :where [?e :deck-list _]] deck-builder.core/conn)
and (datascript.core/q '[:find ?n :where [?e :deck-list ?n]] deck-builder.core/conn)
and get nil
both ways
I've tried a few other combinations, but haven't found anything more than nil
or errors.