map will work over the cursor itself because it is Iterable. This both avoids silly NPEs and follows the common sense of finder functions: they must return an empty sequence when there are no results, not nil. |
||
|---|---|---|
| .. | ||
| monger/test | ||
| resources/mongo/js | ||
map will work over the cursor itself because it is Iterable. This both avoids silly NPEs and follows the common sense of finder functions: they must return an empty sequence when there are no results, not nil. |
||
|---|---|---|
| .. | ||
| monger/test | ||
| resources/mongo/js | ||