various optimisations/fixes

This commit is contained in:
jimpil 2024-01-17 21:23:40 +00:00
parent 3934a6cc50
commit b32f13574a

View file

@ -0,0 +1,8 @@
(ns mongo-driver-3.iterable
(:require [mongo-driver-3.model :as m]))
(defn documents
"Given a MongoIterable <it>, returns an eduction which will
eventually yield all the documents (per `m/from-document`)."
[it keywordize?]
(eduction (map #(m/from-document % keywordize?)) it))