"there was to know"是everything的定语从句,但that不做主语哦,因此可以省略
加上引导词以后完整的句子是:I knew everything that there was to know……