title: RethinkDB: matching a string from a list of strings
body: <p>This is my table in rethinkDB</p>
  
  <p><code>[{"username": "row1", "some_key": ["str1", "str2"]}, {"username": "row2", "some_key": ["str3", "blah"]}, {"username": "row3", "some_key": ["blah", "blahblah"]}]</code></p>
  
  <p>The <code>field</code>(column) <code>name</code> can be repeated. I have a <code>list</code> <code>['row1', 'row2']</code>.</p>
  
  <p>I want to run query and get all the <code>documents</code>(rows) where <code>name</code> is present in the <code>list</code></p>
  
  <p>So far i have this:</p>
  
  <p><code>r.db(self.PROJECT_DB).table(self.PROJECT_TABLE_PICWIZ).filter(r.row['username'] == name for name in following).limit(5).run(self.db_connection)</code></p>
  
  <p><code>following</code> is the <code>list</code> here.</p>
  
  <p>But this returns all the <code>documents</code>(rows)</p>