Created
December 2, 2013 02:11
-
-
Save neumino/7743879 to your computer and use it in GitHub Desktop.
codingkevin - IRC - 2013/12/01
This file contains 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.table("authors").filter( function(author) { | |
return author("posts").contains( function(post) { | |
post("tags").contains("tagSearched") | |
}) | |
}).map( function(author) { | |
author.merge({ | |
posts: author("posts").filter( function(post) { | |
post("tags").contains("tagSearched") | |
}) | |
}) | |
}) |
Author
neumino
commented
Dec 2, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment