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

Комментарии • 9

  • @maowarisa3516
    @maowarisa3516 Год назад +1

    Thank you. Best wishes to you. :)

  • @fernandofuentealba2623
    @fernandofuentealba2623 Год назад +1

    nice video ! , just improve your mic volume cus it was kinda hard to hear what you were saying.

  • @satyanarayanae4688
    @satyanarayanae4688 Год назад +1

    Where is the change event document stored. I tried the same way but the variable value does not get populate.

    • @matthew_kompel
      @matthew_kompel  Год назад +2

      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.

  • @gameplay_factory
    @gameplay_factory 10 месяцев назад

    can you replicate database with scheduled trigger?

  • @user-qo3ui8ix8g
    @user-qo3ui8ix8g 10 месяцев назад +1

    Can we write the trigger functions in python??

    • @matthew_kompel
      @matthew_kompel  5 месяцев назад

      You could call an external function like lambda, and have python code in that function.

    • @adebayoadenekan8106
      @adebayoadenekan8106 3 месяца назад

      ​@@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.

  • @seouldot
    @seouldot Год назад

    sound is too low..I can't hear it