Hello,
Im trying to use "$ne" to excluded a specific "_id" in a query:
{ "$or": [ { "name":"josh", "_id": { "$ne": "blahblah" } }, { "humor":"none", "_id": { "$ne": "blahblah" } } ] }
This however will not work since i need to wrap the "_id" string with ObjectId:
{ "$or": [ { "name":"josh", "_id": { "$ne": ObjectId("blahblah") } }, { "humor":"none", "_id": { "$ne": ObjectId("blahblah") } } ] }
Im not sure how to represent ObjectId("string") on the D side. Any ideas?
Thanks,
Josh