Welcome to the Wefugees Community and thank you for sharing your situation with us.
I am not familiar with the Polish regulations and the resident titles (what exactly is "type D"?), but as you are legally residing in Poland, I would also suggest to see the German embassy in Warsaw first.
Please see this infosheet by the German embassy, which lists the required documents for the visa application. It also states, that your Polish residence permit must have been held for at least 3 months at the time of the application.
I hope this helps and good luck,