Created
May 24, 2013 23:06
-
-
Save neumino/5647104 to your computer and use it in GitHub Desktop.
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('polls').filter( function(poll) { | |
return poll("id").eq("d_you_want").and( | |
poll("processed").map( function(user) { return user.eq("forbidden_user") } ) // map if the user is the one we don't want | |
.reduce( function(left, right) { return left.or(right) }, false ) // compute a huge OR | |
.not() // Flip boolean | |
) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment