var Furniture = ottoman.model('Furniture', {
name: 'string',
title: 'string',
AndManyManyOtherFields
}, {
index: {
findByName: {
by: 'name'
}
}
});
If I execute
Furniture.findByName('table', function(err, tables) {
if (err) return console.error(err);
console.log(tables);
})
The tables contains all fields that just kill network bandwidth , I only need some fields , How can I explicitly project some fields?