I have collection of docs that looks like (Dummy data)
Users {
name : "XXX",
age:"20"
}
{
name : "XXX",
age:"26"
}
{
name : "XXX",
age:"23"
}
I want to to query all users except that one has 23 years old
I implement function like this :
this.userMoadel.aggregation([
{
$match: {age: !23}
}
])
It doesn’t work is there any solution ?
I have to work with aggregation cuz this query should be after a lookup stage