Details
-
Bug
-
Resolution: Won't Do
-
Major - P3
-
None
-
Windows, Netbeans
*Location*: https://docs.mongodb.com/manual/tutorial/query-documents/
*User-Agent*: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
*Referrer*: https://www.google.ch/
*Screen Resolution*: 1680 x 1050
Description
Should know how you specify the first parameter as a variable. E.g.
collection.find(
,{},function(e,docs){ works. But when I have
{fsuser:/575f13cf6eb9d09fdf0f14c2/}in a JSON-Variable it does not work. May be due to the Quotation Marks.
{"fsuser":"/575f13cf6eb9d09fdf0f14c2/"}. Because collection.find(
{"fsuser":"/5762620c59a7aef450417047/"},{},function(e,docs){
does not work.
It would be nice if there was an example of feeding the filter by a variable.