Gran pregunta, tengo este objeto llamado infracciones. Se parece a InfractionObj , ¿estoy tratando de acceder al elemento de ban y enviar algo a la matriz? ¿Cómo lo haría? Lo intenté.
... $push: {infraction: {ban : {$each: DataLog }}}Sin embargo, esto no funcionó para mí ...
// InfracciónObj
{... infractions: {..., ban: []}}