Pharmacology

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