Hi
I’m trying to do some simple aggregation query trying to catch all movies with a 1-word title…!
attached my code:
[{$project: {
Stings:{$split:["$title"," "]},
Filter:{$eq: [{$size: {$split:["$title"," "]}}, 1]},
}}, {$match: { Filter:true}
}, {$group: {
_id: null, n: { $sum: 1 }
}}]