how to use $where in mongodb between the same fields in the document

My code is the same as

collSession.find({$where: "this.Prices[0].PGroup_strCode == this.grpCode"

Using in node.js and mongodb version : 2.4.2 Actaully data is there but its is not giving any result. Where i m going wrong ?