title: How to write a Mongoose/MongoDB query where the number of filter conditions are dynamic?
body: <p>Query schema:</p>
  <ol>
  <li>Given an array of arbitrary number of <code>row_id</code> for <code>Table A</code>.</li>
  <li>For each <code>row_id</code>, there will be an associated <code>filter_value</code>.</li>
  <li>Each <code>filter_value</code> is associated with a column of <code>Table A</code>.</li>
  <li>For each <code>filter_value</code>, the condition maybe to filter all rows less than or greater than the <code>filter_value</code>.</li>
  </ol>
  <p>How can this query be written?
  Is there a special name given to these dynamic queries?</p>