Making a trigger so that when a document is updated , inserted , replaced the embeddings of it is updated/added

Oh! Yes you’re right, I used to run the function directly and didn’t pay attention to that I should pass the change event dictionary first.
But for the part of performing this action on the db itself, I don’t have errors performing it, it’s just about that the embedding of the document isn’t modified by the modification of the document