Created
June 29, 2010 07:16
-
-
Save kidsil/456912 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
'$where' => new MongoCode("function() { return /$query/i.test(this.body) }") | |
This works great if I want to find $query in the object's body, | |
I want to add OR if the object _id is in the array $IDS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment