In the following sentence, can "as" be replaced by "which"? If so, is there no difference between the two, in this case? Do we call ‘as’ in the example as relative pronoun, or just pronoun?
There was a lot more to magic, as Harry quickly found out, than waving your wand and saying a few funny words.
(Harry Potter book 1)

