Created
October 20, 2014 20:27
-
-
Save deontologician/7574ceb8391c8370a028 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
r.db('Playlists').table('Main').merge(function(playlist){ | |
return {'songs': playlist('song_ids').map(function(song_id){ | |
return r.db('Playlists').table('songs').get(song_id); | |
}).coerceTo('array') | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment