Conditional logic in MongoDB update operations

Thanks for testing that, @zean_validated! This is the thread that I was referencing earlier. For that particular case, I verified that wrapping the operation object in brackets fixed the issue.

Remind what kind of operation you're wanting to perform here - is it an insert or update?

1 Like