i'am trying a add new value to array inside object, this way:
await database.models.updateMany( { <queue> }, { $push: { object: { array: 'Hello, World!' }}});
but, thats delete the array inside the object instead of add new value
i'am trying a add new value to array inside object, this way:
await database.models.updateMany( { <queue> }, { $push: { object: { array: 'Hello, World!' }}});
but, thats delete the array inside the object instead of add new value