summaryrefslogtreecommitdiff
path: root/jstests/exists.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/exists.js')
-rw-r--r--jstests/exists.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/exists.js b/jstests/exists.js
index 28f69e8e7c4..3f1e904e52f 100644
--- a/jstests/exists.js
+++ b/jstests/exists.js
@@ -25,7 +25,7 @@ function dotest( n ){
assert.eq( 3, t.count( {'a.b': {$exists:true}} ) , n );
assert.eq( 2, t.count( {'a.b.c': {$exists:true}} ) , n );
assert.eq( 1, t.count( {'a.b.c.d': {$exists:true}} ) , n );
-
+
assert.eq( 1, t.count( {a: {$exists:false}} ) , n );
assert.eq( 2, t.count( {'a.b': {$exists:false}} ) , n );
assert.eq( 3, t.count( {'a.b.c': {$exists:false}} ) , n );
@@ -38,6 +38,7 @@ t.ensureIndex( { "a.b" : 1 } )
t.ensureIndex( { "a.b.c" : 1 } )
t.ensureIndex( { "a.b.c.d" : 1 } )
dotest( "after index" )
+assert.eq( 1, t.find( {a: {$exists:false}} ).hint( {a:1} ).itcount() );
t.drop();