title: Convert string to query document type in mongodb
body: <p>I have a string</p>
  <pre><code>var queryString = '{Occupation: occupation, Budget: budget , Interestedin: interest, Project: project}'
  </code></pre>
  <p>Where all the names are variable names, I want to pass this string into <code>db.User.find( QUERY )</code>. I have used JSON.parser to parse the same by doing</p>
  <pre><code>var object =. JSON.parse(queryString)
  var result = await User.find(object)
  </code></pre>
  <p>But still not getting any results. When I try to print JSON.parse output on console, it prints nothing.</p>