Hi Brett, I created this graph.
<https://lh3.googleusercontent.com/-eBuwdEviNlA/VWbG3rKU0JI/AAAAAAAAAAM/VnARgS89xx4/s1600/graph.png> and when I run the query I get these results. <https://lh3.googleusercontent.com/-v_308smPzS8/VWbIQR7iLmI/AAAAAAAAAAY/T7S2fiFV3kE/s1600/query.png> I hope it can hepl you. Bye, Alessandro Il giorno sabato 23 maggio 2015 04:17:19 UTC+2, Brett Coffin ha scritto: > > I am building a chat room engine and I have a graph like so: > > User---Started--->Room----Discuss--->Item<---Own---User > > I would like to get all the Items and the roomId associated to the Item > for a particular User. > > select > *, in('Discuss').in('Started')[name ='julie'] as roomId > from item > > so this is going threw the right 'Room' and finds the one started by > 'Julie' but it returns Julie's Id, how do I get with this query the Id of > that room ? It's like i need to do a 'one back' and get @rid... > > I am new to graphs so any pointers would be appreciated. > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
