All methods of cooking cause vegetables to lose some nutrients. But boiling can cause the biggest loss.
So when boiling, use a small amount of water. Then simmer for a short time, or until the vegetables are tender. Dont overcook. You can use the veggie water for soup stock or other dishes. The best way to cook vegetables is steaming. Of course, raw is great too!