Beginner's Guide to MongoDB Triggers | MongoDB with Atlas
HTML-код
- Опубликовано: 22 авг 2024
- This is a mongodb tutorial showing the basics of setting up triggers for your database collections. In the video I explain the basics of triggers in mongo and why you would want to use them. This mongodb tutorial goes more in depth on database triggers vs scheduled triggers, and when to use each. mongo triggers are really easy to set up using mongo atlas, and everything I show can be set up for free.
Overall I think mongodb triggers are really under utilized and this mongo tutorial hopefully gets you guys off to a good start with this concept.
#mongodb
Thank you. Best wishes to you. :)
nice video ! , just improve your mic volume cus it was kinda hard to hear what you were saying.
Where is the change event document stored. I tried the same way but the variable value does not get populate.
Make sure that you select the "full document" option when setting up the trigger. Then the variable "changeEvent.fullDocument" will have it stored. You can log Object.keys(changeEvent.fullDocument) to see the different keys of this object.
can you replicate database with scheduled trigger?
Can we write the trigger functions in python??
You could call an external function like lambda, and have python code in that function.
@@matthew_kompel can you explain what you mean here. I'm trying to implement mine in Python too.
I would be glad if you respond.
sound is too low..I can't hear it