Created
January 16, 2011 00:03
-
-
Save iampersistent/781393 to your computer and use it in GitHub Desktop.
mongodb conditional operators
This file contains hidden or 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
is this possible | |
{"_id": {"$ne":{ObjectId('1234554321'), ObjectId('543212345')}}} | |
Substitute "$ne" for any conditional operator and find the right syntax for multiple ObjectId()s | |
I'm needing this for the doctrine mongodb-orm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment