summaryrefslogtreecommitdiff
path: root/jstests/core/fm1.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/fm1.js')
-rw-r--r--jstests/core/fm1.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/jstests/core/fm1.js b/jstests/core/fm1.js
new file mode 100644
index 00000000000..bc60a3d8911
--- /dev/null
+++ b/jstests/core/fm1.js
@@ -0,0 +1,12 @@
+
+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();
+
+