It seems that we need to call .toNumber() even if solely NumberLong values are tested on equality (==) by $where (see below steps to reproduce). The operators > and < work without .toNumer() nevertheless.
$where doesn't find equal NumberLong values
- Assignee:
- 
    
    
    Unassigned 
- Reporter:
- 
    
            
            
    Kay Agahd 
- Votes:
- 
                    0 Vote for this issue
- Watchers:
- 
                    
                    
                    5 Start watching this issue
- Created:
- Updated:
- Resolved: