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

I have no idea why it’s failing , also I’m not sure whether MongoDB provides me with more details about it or not. So if there’s something specific that you want to see, could you tell me what is it so that I can look for it :pray: