Skip to content

Commit aa9343a

Browse files
committed
Wrong counting on $size.
1 parent 5d82a20 commit aa9343a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/reference/operator/size.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $size
1414
db.collection.find( { field: { $size: 2 } } );
1515

1616
returns all documents in ``collection`` where ``field`` is an array
17-
with 2 or more elements. For instance, the above expression will
17+
with 2 elements. For instance, the above expression will
1818
return ``{ field: [ red, green ] }`` and ``{ field: [ apple,
1919
lime ] }`` but *not* ``{ field: fruit }`` or ``{ field: [
2020
orange, lemon, grapefruit ] }``. To match fields with only one

0 commit comments

Comments
 (0)