How to connect photo diode to trans impedance amplifier?
Photo-current flow in the opposite direction to standard diode forward current so, if you want the op-amp output to rise when photo-current flows, you connect the anode to ground. If you want the op-amp output to fall when photo-current flows, you connect the cathode to ground.

Vout will rise in the schematic below when light hits the photo-diode: -



Equivalent circuit of a photodiode from here: -