             [validateur.validation :refer :all]
             ;[clojure.test :refer [is]]
             [monger.multi.collection :as mmc];mirror of mc, but with db as first argument for every function.
+            [monger.conversion :refer [from-db-object]]
+            [monger.query :refer :all :as mq]
             )
   (:import [com.mongodb MongoOptions ServerAddress WriteConcern BasicDBObject BasicDBList]
            org.bson.types.ObjectId


;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


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