a relative clause with an indefinite relative pronoun as subordinating word, as what they said in We heard what they said.
INDEFINITE RELATIVE CLAUSE
Meaning of INDEFINITE RELATIVE CLAUSE in English
Random House Webster's Unabridged English dictionary. Полный английский словарь Вебстер - Random House . 2012