Skip to content

Instantly share code, notes, and snippets.

View alejamp's full-sized avatar
:octocat:
Finishing something big

Alejandro Pirola alejamp

:octocat:
Finishing something big
View GitHub Profile
db = require('riak-js').getClient()
db
.add([['catalogs', 'politics']])
.link({ bucket: 'books', keep: false })
.map(function(value) {
// ejsLog('/tmp/mapreduce', JSON.stringify(value));
value = Riak.mapValuesJson(value)[0];
return [
{