Startkey, endkey whith multiple keys

Hi Matt.
Your advice helped me a lot.
I did it:

$startKey = json_encode(["a056833fe94a", 0]);
$endKey = json_encode(["a056833fe94a", 1385449958]);
$query = CouchbaseViewQuery::from("fileActivity", 'toUserIdWithCreatedAt')->limit(100)->custom(["startkey" => $startKey, "endkey" => $endKey]);

Thanks @ingenthr

1 Like