Get Edges From Match

Hi

  • Question
    I have a question about match , I want to use the SQL like this :
         MATCH {class: Person, as: person, 
         where: (name = 'John')}.(bothE('Friend'){
         where: (date < ?)}.bothV()){as: friend, 
         while: ($depth < 6)} RETURN person, friend

but I can only get nodes, I can`t return the edges, If I get edge like this :

select person.bothE(),frient.bothE() from (  MATCH {class: Person, as: person, 
          where: (name = 'John')}.(bothE('Friend'){
          where: (date < ?)}.bothV()){as: friend, 
          while: ($depth < 6)} RETURN person, friend)

I can`t get the right result, it will have some more edges , how can i get what i want?

somebody help !

Thanks

52HZ