org/wiki/English_relative_clauses , it would be a compound relative pronoun (standing for the "the thing which").
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Michelle ChaIs 'what' a compound relativeYes. Also called "a fused relative".