title: does mongodb have the properties such as trigger and procedure in a relational database?
body: <p>as the title suggests, include out the map-reduce framework
  if i want to trigger an event to run a consistency check or security operations before a record is inserted, how can i do that with MongoDB?</p>