- I was trying to use
$andto express both fields are empty - Here is the code
db.tweets_v2.aggregate({
{match:{$and:[{replyto_id:$exist:false},{replyto_id:$exist:false}]}
});
$and to express both fields are empty db.tweets_v2.aggregate({
{match:{$and:[{replyto_id:$exist:false},{replyto_id:$exist:false}]}
});
There are few fixes,
$exists$exists$match[]not {}Playground