The count of all nested objects and limit

Hi, I'm using nested objects, there are lot of nested objects inside a nested object, please view an example as following:

'transactions' => [
'type' => 'nested',
'properties' => [
'id' => [
'type' => 'keyword',
],
'total' => [
'type' => 'float',
],
'date' => [
'type' => 'date',
],
'products' => [
'type' => 'nested',
'properties' => [
'brand' => [
'type' => 'keyword',
],
'category_id' => [
'type' => 'keyword',
],
]
]
],
],

My question is for setting: index.mapping.nested_objects.limit

does it only count for all nested objects ( 'transactions' and 'products') or first nested objects ('transactions') only ?

Thanks

From Elastic Search to Elasticsearch