Find object by realm.js
<p>Hello I use realm database with react-native.</p>

<p>I have <code>Item</code> schema and find one item by id.</p>

<pre><code>var items = realm.objects('Item');
var item = items.filtered('id == $0', item_id);
console.log(item.name); // It should be printed name, but undefined
</code></pre>

<p>I can't find item. so use lodash.</p>

<pre><code>var item = _.find(realm.objects('Item'), _.matchesProperty('id', item_id));
console.log(item.name); // print "ABCD"
</code></pre>

<p>How do I get item by id?</p>