I want to create this partial index:
db.mycollection.createIndex(
{"firstname": 1, "lastname": 1},
{ partialFilterExpression: { "status": {$exists: false}, "quantity": { $lt: -1 } } } );
but i receive this error:
unsupported expression in partial index: $not\n status exists\n"
How can I do ?