0

Hello I'm new in Angular and Nodejs. I come from .NET background . Is it possible to make trigger and Store procedure in Mongodb with Node Js Api. If it possible please provide me some idea. I couldn't find any source about it .

Rifat Murtuza
  • 119
  • 3
  • 12

1 Answers1

0

Mongo DB does not support stored procedures. Have a look at this: MongoDB Stored Procedure Equivalent

And this: https://docs.mongodb.com/manual/tutorial/store-javascript-function-on-server/

That being said, according to the docs, seems that storing a script is simply saving the function code into db.system.js collection

Hope this helps

ArielGro
  • 795
  • 1
  • 11
  • 24