Insert or update into a object with one query

Hi @Florian_Silbereisen,

If ai understand correctly you are looking for an upsert whithin an array , I think there are 2 ways :

  1. Use array filters with upsert: true
  2. Use aggregation pipeline update with $zip on the array.

I will try to write an example for you.

Thanks
Pavel