I have queries like
{
"title": "sjncx",
"desciption": "cknxk jckd",
"price": "29.99",
"stock": "3",
...
}
I need to filter data if the title is not empty.( title exists and not null). And also is empty like ~ title: "" ~ ( so title exists but empty)
I tried for is not empty:
{'title': {'$ne': 'null'}}
I tried for is empty:
{'title': {'$type': 10}}
That doesn't work. What would be the reason?