CFCouchbase SDK
Search…
Transform Closures
The transform closure will be called in each iteration as we build the native CF array of results. This can be used to normalize data, add or remove data, you name it.
1
results = couchbase.query(
2
designDocumentName = 'beer',
3
viewName = 'brewery_beers',
4
deserialize = false,
5
transform = function( row ){
6
row.document = deserializeJSON( row.document );
7
}
8
);
Copied!
Last modified 3yr ago
Copy link
Edit on GitHub