mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
12 lines
337 B
JavaScript
12 lines
337 B
JavaScript
|
|
t = db.find6;
|
|
t.drop();
|
|
|
|
t.save( { a : 1 } )
|
|
t.save( { a : 1 , b : 1 } )
|
|
|
|
assert.eq( 2 , t.find().count() , "A" );
|
|
assert.eq( 1 , t.find( { b : null } ).count() , "B" );
|
|
assert.eq( 1 , t.find( "function() { return this.b == null; }" ).itcount() , "C" );
|
|
assert.eq( 1 , t.find( "function() { return this.b == null; }" ).count() , "D" );
|