Home > database >  How to identify "insert" vs "update" diff in Azure Cosmos DB trigger?
How to identify "insert" vs "update" diff in Azure Cosmos DB trigger?

Time:11-03

I have created a function triggered by Azure Cosmos DB by following enter image description here

CodePudding user response:

Unfortunately, you can't distinguish between the two types (insert & update). The trigger consumes the Change Feed, and you can't filter it for a specific type of operation.

Today, you see all inserts and updates in the change feed. You can't filter the change feed for a specific type of operation.

  • Related