Trying to convert the following mongo console query into casbah/scala's DSL.
db.campaign.find({ "space.id": { $exists: true, $in: ["123","456"] } })
The best I have come up with has been the following which uses an or instead.
$or("space.id" $exists false, "space.id" $in restrictedSpaces)
Just looking for someone with more experience (read any), to say that this is the correct way to do this, or that there is a better way to go about this.
Thanks, Aaron