mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
13 lines
220 B
JavaScript
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();
|
|
|
|
|