how to apply count nested array in doctrine mongodb Aggregation builder ?
my document is
{
"_id": "5dde88cd97e54f7c1a38da40",
"list_id": [
[
2
]
]
}
i have tried
$builder =$this->dm->createAggregationBuilder(ClientUser::class);
$builder->addFields()
->field('list_id[0][0]')
->expression(['list_id[0][0]' => 2])
->count('list_id[0][0]');
but it is not working ..
please suggest
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/doctrine-user/9c9f08b1-0553-45bb-be74-efa990693780%40googlegroups.com.