I am attempting to use the following query in MongoDB shell but it is not working.
db.test.aggergate(
$match: {$and: [type: {$in: ["TOYS"]}, type: {$nin: ["BARBIE"]}, time:
{$lt:ISODate("2013-12-09T00:00:00Z")}]}})
The error is showing that ":" is an invalid character.
Can we use $and with $match?