TypeError: unsupported operand type(s) for +: 'Cursor' and 'Cursor'
<p>I want to be able to store two collections in variable to be able to view and sort through them. However, I seem to be getting the error above.
My code is in python and look like this:</p>

<pre><code>  from pymongo import MongoClient

  db = MongoClient('10.39.165.193', 27017)['mean-dev']
  cursor1 = db.Build_Progress.find()
  cursor2 = db.build_lookup.find()
  joincursors = cursor1+ cursor2

 for document in cook:
     print(document)
</code></pre>

<p>You need to <a href="https://docs.python.org/3.6/library/itertools.html#itertools.chain" rel="nofollow"><code>chain</code></a> the two cursors like this:</p>

<pre><code>from itertools import chain

for document in chain(cursor1, cursor2):
    print(document)
</code></pre>

python mongodb pymongo