Skip to content

Instantly share code, notes, and snippets.

@iampersistent
Created January 16, 2011 00:03
Show Gist options
  • Save iampersistent/781393 to your computer and use it in GitHub Desktop.
Save iampersistent/781393 to your computer and use it in GitHub Desktop.
mongodb conditional operators
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