Yes, I checked other union questions here, however this seems to be different.
Here is the SQL query I'd like to convert for mongo
SELECT column1 from table1
UNION
SELECT column1 from table2
In my mongo database I could have up to 12 collections, one for each month.
data.2013.01
data.2013.02
.
.
data.2013.12
When plotting I'd like to show multiple months on graph at a time. That brings us to the question, how to create UNION in mongo.
I think the ultimate conclusion you will come to is that your schema is incorrect. Put all your objects of the same purpose and shape into a single collection. That's how to work in harmony with mongodb. Making collections by month is a mistake that will cause you endless needless battles with mongo. Once you have everything in one collection as intended, the aggregation can handle grouping by month for you as per the aggregation example of usernames ordered by join month.
read this at first:
http://docs.mongodb.org/manual/reference/sql-aggregation-comparison/
mongo does not have something like union but i think $or will be useful for your needs.
read this answer: http://stackoverflow.com/a/14928646/1321404