I have two collections as  A and B and both having document as below :
collection A
{_id:id1
 name: Mohan
 age:25
}
collection B
{_id:id2
 name: sohan
 age:29
}
I want to merge this two collection A and B and expected output as below:
{_id:id1,
 name: Mohan,
 age:25},
{_id:id2,
 name: Sohan
 age:29
}
Any one knows how to merge this two collections? And I don't want to be create a new collection.
 
     
    