I have a document like this
{
_id:ObjectId,
subdocuments:[{
arrayField:[String]
}]
}
How can I get the total length of arrayFields contained in my parent document? I can get the number of subdocuments with $size : "$subdocuments", but I need something like $size : "$subdocuments.arrayField"