Hello,
I’m aware that there is no way to use a custom transcoder for n1ql in PHP SDK at the moment. Is there a plan to support it in the future?
I think something like this would be nice to have.
$query = CouchbaseN1qlQuery::fromString("select * from ...");
$query->transcodeWith(function($result) {
// do something on $result
return $result;
});
$results = $bucket->query($query);