I have two mongodb collections, 'collection1' and 'collection2' and I need one pymongo cursor with both of their results as follows:
the cursor for collection1 gets:
{"month" : "june", "day" : 22}
{"month" : "april", "day" : 3}
the cursor for collection2 gets:
{"month" : "january", "day" : 1}
the cursor I need gets:
{"month" : "june", "day" : 22}
{"month" : "april", "day" : 3}
{"month" : "january", "day" : 1}
So, as you can see, it's not a join, or merge or map reduce, it is simple getting both results as one (I don't even know the name for that). But the result must be a proper pymongo cursor. Any help would be appreciated.