Refers to the toy.
El yoyo que compré ayer es de un color brillante y gira sin parar.
The yoyo I bought yesterday is a bright color and spins non-stop.
El niño jugaba con un yoyo que había ganado en la feria.
The boy played with a yoyo that he had won at the fair.