use field in FIND MongoDB code example
Example 1: mongodb find field based on variable
var name = req.params.name;
var value = req.params.value;
var query = {};
query[name] = value;
collection.findOne(query, function (err, item) { ... });
Example 2: mongodb find with gt
{field: {$gt: value} }