sorry if this a very beginner question but I'm still quite new to the field of electronics generally.
I have a requirement to connect a Raspberry Pi to an existing electronic lock, and hopefully use a signal from one of the GPIO pins to cause the lock to unlock. I've been advised that the electronic lock is a 1A circuit, at (I think) 12V, and that any time the circuit is closed, the lock is triggered. Meanwhile, the RPi operates at 3.3V, with a 2-20mA output per pin and a 50mA limit.
Given this, what solutions do I have for allowing a logic signal from the RPi to control the much higher-power lock circuit? Initial research seems to suggest simply a transistor or relay of some sort would suffice, but my attempts to understand how I'd wire these together have been spectacularly unsuccessful. All my programming for the RPi is fine, I can drive the pin (or several pins if needed) high or low at the appropriate time - I just can't figure out how to let it control a 1A circuit. Do I need a full circuit of some sort that connects to both, or is there a way to just use a single component here?