>>12055054 (pb)
Several different companies make syringes with retractable needles. I used to give shots and used them.
A video on this company's site shows a close-up of how the needle goes up into the syringe barrel:
https://www.medicalexpo.com/prod/retractable-technologies/product-119131-950892.html