Two NYPD officers who were shot Tuesday have been released from Jamaica Medical Center.

Both 36-year-old Christopher Wells and 33-year-old Joseph Murphy were responding to a domestic violence report when the shooting occurred.

Police Commissioner Dermot Shea said during their hospitalization both officers underwent surgery, and while they have a long road ahead, he expects both to fully recover.

"When you see the emotion that you see here and smiles in the week where you had two police officers shot, there is no surprise here today what we have to be thankful for. We’re just so grateful that these officers are going to be able to get home today," Shea said Thursday. 

A woman had called the 105th precinct on Tuesday to report the domestic violence incident. The two uniformed domestic violence officers escorted her back to her home on 179th Street in Springfield Gardens.

They were there for just a few minutes when her husband came home armed, and a gunfight broke out.

"When we first got the call we weren't sure if this was going to be a solemn ceremony or a joyful one — and it's especially joyful because it's Thanksgiving," said Patrick Lynch, president of the Police Benevolent Association of NYC.

It's unclear how many shots were fired, but the two officers were struck, as well as the gunman, who was declared dead on the scene.