Skip to content

Instantly share code, notes, and snippets.

@dimovich
Created September 3, 2018 13:09
Show Gist options
  • Save dimovich/aa273b53e382544a82a9670fa32a0669 to your computer and use it in GitHub Desktop.
Save dimovich/aa273b53e382544a82a9670fa32a0669 to your computer and use it in GitHub Desktop.
;; can we make DS leave data unsorted?
(require '[datascript.core :as ds])
(def schema {:tags {:db/cardinality :db.cardinality/many}})
(def conn (ds/create-conn schema))
(ds/transact! conn [{:tags [33 1 12 1545 234]}])
(ds/pull @conn '[*] 1)
;; {:db/id 1, :tags [1 12 33 234 1545]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment