You declare myDoc2...but you never do anything with that. Where is the second doc?

I assume you want to take the FIRST doc and merge the other docs that one? You need to do a second loop.