datomic

Ask questions on the official Q&A site at https://ask.datomic.com!
souenzzo 2021-03-29T00:09:20.144100Z

(-> '[:find (pull ?content [*])
      :in $ ?user-id-string
      :where
      [?user-id :user/id-string ?user-id-string]
      [?content :content/user ?user-id]
      (not [?content :content/deleted true])]
    (d/q db user-id-string)
    (->> (map first)
         (sort-by :content/event-timestamp-lng)))