Fork me on GitHub
#datascript
<
2021-09-09
>
oly07:09:54

anyone know if I can search a sub vector so given i have this data in the db

{:title "hello"
 :tags ["one" "two" "three"]}
Can i build a where that will return all entities with tags of two ? I basically want to use some on tags in essence.

lilactown17:09:57

[:find ?e
 :where
 [?e :tags "two"]]
? I think that you'll have to mark :tags as multi cardinality in your schema