Metal(II) complexes synthesized based on quinoline-2,3-dicarboxylate as electrocatalysts for the degradation of methyl orange.