I will send you a link to the reaction,
here. Here are some explanations:
1.) The electrons in the aldehyde migrates when a reaction with a silver-ion starts.
2.) The silver-ion attracts one of those migrated electrons in the aldehyde and reacts to silver.
3.) The C-atom in aldehyde is positive charged now. That causes a nucleophilic reaction with negative charged OH-group.
4.) An H-atom is elimated and protonized. This proton is bond to the negative charged O-atom and makes another OH-group.
5.) The C-atom of the aldehyde is negative charged now. It donates an electron to a silver-ion and gets neutralized.
6.) An H-atom on an OH-group is eliminated, gets protonized and reacts with an OH-group to a water molecule.
7.) Another electron migration in carboxylic acid causes an elimination and protonation of an H-atom in COOH-group.
8.) This protonation leads to another water molecule and finally to the carboxylic acid.
The Tollen's test for the aldehyde is finished.