This is my table in rethinkDB
[{"username": "row1", "some_key": ["str1", "str2"]}, {"username": "row2", "some_key": ["str3", "blah"]}, {"username": "row3", "some_key": ["blah", "blahblah"]}]
The field
(column) name
can be repeated. I have a list
['row1', 'row2']
.
I want to run query and get all the documents
(rows) where name
is present in the list
So far i have this:
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)
following
is the list
here.
But this returns all the documents
(rows)