How can I use projection in node-ottoman
<https://github.com/couchbaselabs/node-ottoman> to save network bandwidth ?
In the following model
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?
--
You received this message because you are subscribed to the Google Groups
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.