[
{
$addFields: {
Larva: { $toInt: "$Larva" },
Ninfa: { $toInt: "$Ninfa" },
Pupa: { $toInt: "$Pupa" },
}
},
{
$group: {
_id: "",
"Huevo": {$sum: "$Huevo"},
"Larva": { $sum: "$Larva" },
"Ninfa": { $sum: "$Ninfa" },
"Pupa": { $sum: "$Pupa" }
},
}
]
I am using a validator and it shows an error and I do not know why.
Capture: https://prnt.sc/8QE8m_fFLWD1
I tried this query in my terminal and it works, but I check it in a json validator and it shows me an error
New contributor
Victor Daniel Salazar Marquez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.