title: Sanitize user input in Mongoose
body: <p>Except for <a href="https://stackoverflow.com/questions/11987873/how-to-sanitize-user-input-in-mongoose">this fairly uninformative answer</a> and another <a href="https://stackoverflow.com/questions/18318798/sanitizing-data-before-saving-to-mongoose">unpopular answer</a>, I can't seem to find any resources about sanitizing user input using Mongoose.</p>
  
  <p>There's a <a href="https://thecodebarbarian.wordpress.com/2014/09/04/defending-against-query-selector-injection-attacks/" rel="noreferrer">blog post here</a> about Node/MongoDB injection which seems good at the server level, but there must be something in the middleware level (i.e. Mongoose) that can sanitize input and ensure reasonable safety in the database.</p>
  
  <p>Is there such a beast, or is it even necessary?</p>