title: Mongoose Schemas and inserting via python
body: <p>I'm using a Nodejs server for a  WebApp and Mongoose is acting as the ORM.</p>
  <p>I've got some hooks that fire when data is inserted into a certain collection.</p>
  <p>I want those hooks to fire when a python script inserts into the mongoDB instance. So if I have a pre save hook, it would modify the python scripts insert according to that hook.</p>
  <p>Is this possible? If so, How do I do it?</p>
  <p>If not, please feel free to explain to me why this is impossible and/or why I'm stupid.</p>
  <p><code>EDIT:</code> I came back to this question some months later and cringed just at how green I was when I asked it. All I really needed done was to create an API endpoint/flag on the NodeJS server that is specifically for automated tasks like the python script to send data to, and have mongoose in NodeJS land structure.</p>