Chapter 3. Lab 1 - $group and accumulators

I’m trying to accomplish the lab step by step.
I got stuck at this point:

db.movies.aggregate(
[
{
$match : {
“awards” : /^Won /
}
},
{
$project : {
_id : 0,
“awards” : 1,
“aw_split” : {$split : ["$awards", " "]},
“int_oscar” : {$toInt : “$aw_split.1”}
}
}
]
)

Awards beginning by "Won " works;
$split seems to work, because returns a list of strings between square brackets, but if I ask for its type ($type) the shell responds it’s missing. So I can’t go further

What’s wrong with that? I know $split returns an array of strings.

Thank you very much

Just realized it was wrong.
Solved
Thank you