Trigger To Insert/Update To Another Collection

Hi @Tim_N_A ,

Can you use a .then statement to verify how much documents are updated? I suspect that number of documents updated is 0.

Btw if you expect this operations to be upsert you need to update an upsert : true.

You can also use async function declaration and await for a synchronous statement and place the output into a variable.

This operations are not complex there are probably something in the data or filter that doesn’t add up.

Thanks
Pavel