-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 2.0
-
Component/s: None
-
Labels:
-
Empty show more show less
When performing a find query using the maxTimeMS option, documents are returned without fields. The problem seems to be that specifying this option is somehow interpreted the same as specifying the fields:[] option.
See the attached example. First try node max.js. This will return the full document with all fields. Next try node max.js 1000. This specifies the maxTimeMS: 1000 query option. Notice that the document is returned without the color property.
Add options.fields = []; at line 21, then run node max.js 1000. Notice that the full document is now returned despite having specified the maxTimeMS option.