Create edges using vertex properties without record id

Can anyone help on how to push batch of edges without record id ?How to Create edges using vertex properties?

Something like this?

create edge EdgeClass from (select from V where prop1 = 'something') to (select from V where prop2 = 'else');