RethinkDB cursor to array in python

The following code will retrieve query results as an array:

r.connect("localhost", 28015).repl()
db = r.db("search")
table = db.table("industries")
cursor = table.filter(lambda x: x['search_query'] == value)
rows = [x for x in cursor]

Leave a Reply

Your email address will not be published. Required fields are marked *