diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-08-20 16:50:23 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-08-20 16:50:23 -0400 |
commit | afae0919bbf43392c00a06a6c7c03bee4e1b7813 (patch) | |
tree | 0f7855964fe7c229943b0b32521c4432c3b67feb | |
parent | 48f47865da8ab436ae1a6f2c10fdf7350085b216 (diff) | |
download | mongo-afae0919bbf43392c00a06a6c7c03bee4e1b7813.tar.gz |
test from before that works
-rw-r--r-- | jstests/fm2.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/jstests/fm2.js b/jstests/fm2.js new file mode 100644 index 00000000000..bee89300db3 --- /dev/null +++ b/jstests/fm2.js @@ -0,0 +1,9 @@ + +t = db.fm2 +t.drop(); + +t.insert( { "one" : { "two" : {"three":"four"} } } ); + +x = t.find({},{"one.two":1})[0] +assert.eq( 1 , x.one.keySet().length , "ks l 1" ); + |