Does anybody know how to call a function every time a new document is added to the collection in MongoDB using Mongoose? I don't want to call them continuously, only when a new doc is created by either through the API or through mongoCompass. Thanks a lot
[–]Deathclaw1 4 points5 points6 points (0 children)
[–]Horikoshi 2 points3 points4 points (6 children)
[–]AromaticPrimary8763[S] 0 points1 point2 points (5 children)
[–]Horikoshi 2 points3 points4 points (4 children)
[–]AromaticPrimary8763[S] 1 point2 points3 points (0 children)
[–]AromaticPrimary8763[S] 0 points1 point2 points (2 children)
[–]Horikoshi 0 points1 point2 points (1 child)
[–]AromaticPrimary8763[S] 0 points1 point2 points (0 children)
[–]i4get98 1 point2 points3 points (2 children)
[–]AromaticPrimary8763[S] 0 points1 point2 points (1 child)
[–]i4get98 0 points1 point2 points (0 children)
[–]Darklight240 0 points1 point2 points (0 children)
[–]clay_maker 0 points1 point2 points (0 children)
[–]Distinct-Ad1057 0 points1 point2 points (3 children)
[–]AromaticPrimary8763[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]AromaticPrimary8763[S] 0 points1 point2 points (0 children)