Hi,
I’m executing the following query in my PHP code.
$query = CouchbaseViewQuery::from("dev_".$this->bucketName, 'followers')->key($personId);
$result = $this->bucket->query($query);
Outputs
array (size=2)
'total_rows' => int 2
'rows' =>
array (size=0)
empty
My View Map function
function (doc, meta) {
if (doc.action && doc.action === 'follow') {
emit(doc.acted_on_document_id, doc.actor_document_id);
}
}
From the web admin interface, everything works fine. The problem is that PHP shows an empty array for the ‘rows’ key.
Is this a bug?