Fork me on GitHub
#datascript
<
2018-10-07
>
ClashTheBunny18:10:14

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]]

ClashTheBunny18:10:16

I put them in there as a list. How do I match them and get them back out?

ClashTheBunny18:10:27

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

ClashTheBunny18:10:06

I've tried a few other combinations, but haven't found anything more than nil or errors.