Skip to content

Instantly share code, notes, and snippets.

@kidsil
Created June 29, 2010 07:16
Show Gist options
  • Save kidsil/456912 to your computer and use it in GitHub Desktop.
Save kidsil/456912 to your computer and use it in GitHub Desktop.
'$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