Pharmacology

A patient of prinzmetal's angina is staed on isosorbide mononitrate. What is the mechanism of action of nitrates in this condition?