Disclosed in the present disclosure are an azaheteroaryl compound, a pharmaceutically acceptable salt thereof, and a solvate thereof. The present disclosure also provides a method for preparing said compound, a composition containing said compound, and a use of said compound in the preparation of a drug for treating a disease or disorder related to the mechanism of action of an EED protein and/or a PRC2 protein complex. (Formula 1)