mongo-debian/jstests/fm2.js
2010-01-31 08:32:52 +01:00

9 lines
170 B
JavaScript

t = db.fm2
t.drop();
t.insert( { "one" : { "two" : {"three":"four"} } } );
x = t.find({},{"one.two":1})[0]
assert.eq( 1 , Object.keySet( x.one ).length , "ks l 1" );