Skip to content

Instantly share code, notes, and snippets.

@luccastera
Created April 28, 2011 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luccastera/947156 to your computer and use it in GitHub Desktop.
Save luccastera/947156 to your computer and use it in GitHub Desktop.
Testing riak-js getAll()
var db = require('riak-js').getClient({port: 8098, debug: false});
db.save('memberships', '1', {user_id: 'luc', group_id: "barca_fans"});
db.getAll('memberships', {where: { user_id: 'luc' }}, function(err,data) { console.log(data) });
db.getAll('memberships', {where: { user_id: 'mourinho' }}, function(err,data) { console.log(data) });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment