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

I’m really sorry but I’m brand new to Mongodb I’ve tried to look for a way to get its link but I couldn’t do it. How can I get its link ?