Source

mongo-dart / lib / objectory / objectory_server.dart

Diff from to

lib/objectory/objectory_server.dart

       db.drop();
     }  
     if (command == "update"){
-      db.collection(collection).update(obj);
+      db.collection(collection).update({"_id":obj["_id"]},obj);
     }
     if (command == "findOne"){
       db.collection(collection).findOne(obj).then((val)=>sendObject(connection,val));