welcome to the community!
Depends on the structure of your graph. My first hint would be to add a type to the relationship, cause I assume myProp doesn't appear on all types of relationships but on one or only a few.
MATCH (:A)-[r:REL_TYPE]->(:A) ...
or, if more than one type is needed:
MATCH (:A)-[r:REL_TYPE1|RELTYPE2]->(:A) ...