Files
mongo/jstests/core/fm1.js
Randolph Tan 5595b94560 SERVER-12127 migrate js tests to jscore suite when not related to writes
Moved test jstest/[a-i].js -> jstests/core/ and made changes to comply with write command api
2014-02-28 16:26:33 -05:00

13 lines
220 B
JavaScript

t = db.fm1;
t.drop();
t.insert({foo:{bar:1}})
t.find({},{foo:1}).toArray();
t.find({},{'foo.bar':1}).toArray();
t.find({},{'baz':1}).toArray();
t.find({},{'baz.qux':1}).toArray();
t.find({},{'foo.qux':1}).toArray();