How to retrive edge property based on edge out vertex's property value?

15 views
Skip to first unread message

Suyog Kale

unread,
Nov 8, 2016, 12:51:12 AM11/8/16
to OrientDB

Hello,

I want to read edge property along if the edge's outV's particular property match with given condition, below is my sample query.

select uFBName,uFBEmail, uFBPhoto, (inE('FBRequest')[inE('FBRequest').outV()._id='101'].include('status') from (select expand(out('FBRequest')) from friend where _id='101')

Please suggest me solution.

user.w...@gmail.com

unread,
Nov 8, 2016, 1:27:44 AM11/8/16
to OrientDB
Hi,

I'm not sure to have understood your structure, I think this is what you got:

Class friend extends V:
- _id (integer)
- uFBName (string)
- uFBEmail (string)
- uFBPhoto (binary)

Class FBRequest extends E:
- status (string)

Is my thought correct?

Regards,
Michela

Reply all
Reply to author
Forward
0 new messages