title: Using object from GET param as where clause in sequelize
body: <p>I want to make <code>GET</code> request that returns data from Postgres database without specifying in advanced the <code>where</code> clause. </p>
  
  <pre><code>router.get("/:object_query", async (req, res) =&gt; {
          var object_query = req.params.object_query;
          var note = await db.note.findAll({
              where: object_query
          });
          if (!note.length) {
              return res.status(404).send();
          }
          res.send({
              note
          });
      });
  </code></pre>
  
  <p>Call for the request would be something like this:</p>
  
  <pre><code>localhost/note/{objectID: "1234"}
  </code></pre>
  
  <p>or</p>
  
  <pre><code>localhost/note/{objectID: "1234", otherparam: "abcd"}
  </code></pre>
  
  <p>Idea is that I can from same request query table with different rows. </p>
  
  <p>Is something like this possible without writing request for each different number of params I plan to use for <code>where</code> clause, as I had an idea? 
  How should it be done, from my tries I got </p>
  
  <pre><code>(node:23832) UnhandledPromiseRejectionWarning: Error: Support for `{where: 'raw query'}` has been removed.
  </code></pre>
  
  <p>Thank you for help. </p>