Your NodeMCU needs to be running AT firmware (which it might have installed as standard when it arrives).
Then the process is the same as using an ESP-01 as the WiFi modem.
But, connecting an Uno to a NodeMCU is a bit like connecting a trailer to a Ferrari.
The NodeMCU is far more powerful than the Uno, so why not use it as a standalone board?
If it doesn’t have enough GPIOs or Analog inputs then use a standalone ESP32 instead?
Pete.