Access array with Node.js and Mongoose
<p>I want to access to an array over Mongoose and filter over array length like that:</p>

<p><strong>MongoDB</strong></p>

<pre><code>{"likelist" : [ "5778173453f8f28a119d6eaa", "5778173453f8f28a119d6eab" ], "unlikelist" : [ "57781e7978ac42eb027d3728" ] }
</code></pre>

<p><strong>Node.js</strong></p>

<pre><code>var likelistSum = req.body[0]['likelist'].length;

Data.find({$and:[query,{"likelistSum":{$gt:0}}]}).limit(req.body.limit).lean().exec(function (err,data) {
    console.log(data)

});
</code></pre>

<p>What I am doing wrong?</p>