mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
10 lines
183 B
JavaScript
10 lines
183 B
JavaScript
|
|
t = db.set1;
|
|
t.drop();
|
|
|
|
t.insert( { _id : 1, emb : {} });
|
|
t.update( { _id : 1 }, { $set : { emb : { 'a.dot' : 'data'} }});
|
|
assert.eq( { _id : 1 , emb : {} } , t.findOne() , "A" );
|
|
|
|
|