Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to pull documents from another bucket using gaze & populate #1

Open
godric7 opened this issue Mar 12, 2015 · 0 comments
Open

Comments

@godric7
Copy link
Owner

godric7 commented Mar 12, 2015

We need to be able to get referenced data across buckets.

eg.

  var ct = require('couchtard');
  var bu_artists = new ct.Bucket({...});
  var bu_songs = new ct.Bucket({...});

  bu_artists.gaze('artists', 'songs_by_artist', {
    key: '/artists/1',  
    bucket: bu_songs
  }, function(err, songs, meta)) {
    console.log(songs); 
  });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant