You would either go:
A) HDMI into the receiver with pass-through to the TV.
or
B) HDMI into the TV and then HDMI E-ARC out to the TV.
Ultimately, the way you opt to do it will depend on specific hardware as well as certain specific finer points on setup that you prefer.
The modernists will probably tell you to go B, but that depends on both your TV and your Receiver supporting E-ARC, as well as the technology actually working right. This in theory will let your TV (and it's remote) control the receiver and turn it more into a supporting device.
Option A is a bit more old-school and the way I would do it. This also gives you On Screen menus from your Receiver. This method is sort of the opposite of A in that it turns the TV into just a screen and virtually everything else is controlled by the receiver and it's remote. I typically find input switching for multiple devices to be far better handled by the receiver than trying to use the TV's smart interface nonsense to switch inputs.