 (ns data-mall.mongodb
+  (:refer-clojure :exclude [sort find])
   (:require [monger.core :as mg]
             [monger.collection :as mc]
             [monger.operators :refer :all]


;insert array

(mc/insert "insertarray" {:name "John" :age 30 :pets ["sam" "chelsie"]})

;ObjectId

#_(let [oid (ObjectId.)
      entry {:a 2 :b 3}]
  (mc/insert-and-return "basics" (merge entry {:_id oid})))

#_(ObjectId. "5312dd1a3df359d5919cc5c6")

;insert instance of DBObject



(mg/set-db! (mg/get-db "test"))

#_(def data (mc/find-maps "fulltime"))


;insert into db
