Democracy cannot be viewed through a narrow prism of electoral mandates alone and if all the decisions of elected wings like the parliament and the executive are considered democratic, then fundamental rights and courts will serve no purpose, Chief Justice of India DY Chandrachud said in his judgment in the same-sex marriage case.