[DOCS-5187] Comment on: "manual/reference/operator/query/where.txt" Created: 09/Apr/15  Updated: 11/Jan/17  Resolved: 08/Aug/15

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Unassigned
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Meteor

Location: http://docs.mongodb.org/manual/reference/operator/query/where/#op._S_where
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36
Referrer: http://docs.mongodb.org/manual/reference/operator/query/
Screen Resolution: 1600 x 900
repo: docs
source: reference/operator/query/where


Participants:
Days since reply: 8 years, 27 weeks, 4 days ago

 Description   

I having problems with this code:

var servicePriceProportion = 0.7;
var serviceMaxPrice = 1000;

CollectionX.find({
... other conditions,
$where: function()

{ return (this.Data.investmentMax * servicePriceProportion < serviceMaxPrice); }

});

For test, I tried this too:

$where: function()

{ return (this.Data.investmentMax != this.Data.investmentMax); }

I asked for help, but no one can solve this problem.



 Comments   
Comment by Kay Kim (Inactive) [ 08/Aug/15 ]

Stackoverflow:http://stackoverflow.com/questions/29530528/working-with-personalized-operators-on-mongodb-find-method

Generated at Thu Feb 08 07:49:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.