Permalink
Browse files

another test

  • Loading branch information...
1 parent b4ca376 commit e70082b29e75003f4af4c15610eb368314263269 @erh erh committed Apr 13, 2010
Showing with 11 additions and 0 deletions.
  1. +11 −0 jstests/update_addToSet2.js
@@ -0,0 +1,11 @@
+
+t = db.update_addToSet2
+t.drop();
+
+o = { _id : 1 }
+t.insert( { _id : 1 } );
+
+t.update({},{$addToSet : {'kids' :{ 'name' : 'Bob', 'age': '4'}}})
+t.update({},{$addToSet : {'kids' :{ 'name' : 'Dan', 'age': '2'}}})
+
+printjson( t.findOne() );

0 comments on commit e70082b

Please sign in to comment.