How does nutrition affect the immune system?

The market is flooded with Immunoboosting rice/bread/water etc. But how nutrition affects the immune system? Read the connection & make better choices.