Myopia is the most common developmental disorder of juvenile eyes, and it has become an increasing cause of severe visual impairment. The GJD2 locus has been consistently associated with myopia in multiple independent genome-wide association studies. However, despite the strong genetic evidence, little is known about the functional role of GJD2 in refractive error development. Here, we find that depletion of gjd2a (Cx35.5) or gjd2b (Cx35.1) orthologs in zebrafish, cause changes in the biometry and refractive status of the eye. Our immunohistological and scRNA sequencing studies show that Cx35.5 (gjd2a) is a retinal connexin and its depletion leads to hyperopia and electrophysiological changes in the retina. These findings support a role for Cx35.5 (gjd2a) in the regulation of ocular biometry. Cx35.1 (gjd2b) has previously been identified in the retina, however, we found an additional lenticular role. Lack of Cx35.1 (gjd2b) led to a nuclear cataract that triggered axial elongation. Our results provide functional evidence of a link between gjd2 and refractive error.