alice.view('characters', 'soldiers', {
'keys': ['Hearts', 'Clubs']
}, function(err, body) {
if (!err) {
body.rows.forEach(function(doc) {
console.log(doc.value);
});
}
});
Does this filter on key: "Heart"
or key: "Clubs"
or the exact match key: ["Hearts", "Clubs"]
? I wish to do the latter where my keys are arrays with 2 items.
Also if I JUST inserted into the db, can I expect this view to immediately be up to date when I run that code?