genetic testing ?

Rebecca💍
I go to the drs next week when I'm 9weeks and they said that they could do a test that would tell us the sex of the baby. Has anyone done this at 9weeks and how exactly is it done?? Thanks in advance