db.catalog.find({ 'details.media_type_id': 2 })
r.table('catalog').filter({ details: { media_type: 2}})
r.table('catalog').filter(r.row('details')('media_type').eq(2))
http://docs.mongodb.org/manual/reference/limits/#Restriction...