Skip to content

Instantly share code, notes, and snippets.

@naranjja
Created January 2, 2017 20:53
Show Gist options
  • Save naranjja/a1039d1be5e5e9ee312be91f1ced3359 to your computer and use it in GitHub Desktop.
Save naranjja/a1039d1be5e5e9ee312be91f1ced3359 to your computer and use it in GitHub Desktop.
Filter using NOT operator
.filter(
function (doc) {
return r.expr(['red'])
.contains(doc('appleColor'))
.not();
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment