Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(d/q
'[:find ?u
:where [?u :user/email "jdkealy@gmail.com"]]
(db/_d))
; #{[17592186045908]}
(d/q
'[:find ?entity ?name ?tx ?score
:in $ ?search
:where [(fulltext $ :user/email ?search) [[?entity ?name ?tx ?score]]]]
(db/_d) "jdkeal")
; #{}
(-> (db/_d) (d/entity :user/email) d/touch)
; {:db/id 316, :db/ident :user/email, :db/valueType :db.type/string, :db/cardinality :db.cardinality/one, :db/index true, :db/fulltext true}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.