select *, in('Post').@rid as userId, in('Post').fullname as fullname from 
(traverse out from (traverse in_Post from (select 
expand(distinct(@rid))from (SELECT EXPAND(BOTH("Follow").out("Post")) FROM 
User WHERE @rid=#12:2)))) where @class = 'Publication'

Le jeudi 26 mai 2016 14:52:26 UTC+1, Messaoud Mohamed a écrit :
>
> traverse out from (traverse in_Post from(select expand(distinct(@rid))from 
> (SELECT EXPAND(BOTH("Follow").out("Post")) FROM User WHERE @rid=12:2)))
>
> COMMANDtraverse out from (traverse in_Post from(select 
> expand(distinct(@rid))from (SELECT EXPAND(BOTH("Follow").out("Post")) FROM 
> User WHERE @rid=12:2)))
> METADATAPROPERTIESINOUT
>
> @rid
> @class
> @version
> title
> description
> publicationDate
> fullname
> email
> password
> in
> out
> firstName
> lastName
> gender
> role
> login
> Post
> makeL
> Commentof
> Follow
> makeL
> Post
> postComment
> Follow
> #13:335 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/13:335>
> Publication 
> <http://localhost:2480/studio/index.html#/database/Insta/schema/editclass/Publication>
> 6
> pr3
> hello
> 2016-05-26 11:15:03
> #16:203 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/16:203>
> #19:166 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/19:166>
> #21:70 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/21:70>
>  #21:75 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/21:75>
> #16:203 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/16:203>
> Post 
> <http://localhost:2480/studio/index.html#/database/Insta/schema/editclass/Post>
> 2
> #13:335 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/13:335>
> #12:4 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/12:4>
> #12:4 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/12:4>
> User 
> <http://localhost:2480/studio/index.html#/database/Insta/schema/editclass/User>
> 63
> Jaddi Yosra
> [email protected]
> JaddiYosra
> Yosra
> Jaddi
> Female
> 1
> JaddiYosra
> #14:764 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/14:764>
> []
> #16:203 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/16:203>
> #16:216 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/16:216>
> #16:217 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/16:217>
> #20:75 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/20:75>
>  #20:76 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/20:76>
>  #20:77 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/20:77>
> #14:763 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/14:763>
> #13:357 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/13:357>
> Publication 
> <http://localhost:2480/studio/index.html#/database/Insta/schema/editclass/Publication>
> 1
> pr3
> heelo
> 2016-05-26 12:44:49
> #16:216 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/16:216>
> #16:216 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/16:216>
> Post 
> <http://localhost:2480/studio/index.html#/database/Insta/schema/editclass/Post>
> 2
> #13:357 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/13:357>
> #12:4 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/12:4>
> #13:358 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/13:358>
> Publication 
> <http://localhost:2480/studio/index.html#/database/Insta/schema/editclass/Publication>
> 1
> pr3
> hello3
> 2016-05-26 12:44:58
> #16:217 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/16:217>
> #16:217 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/16:217>
> Post 
> <http://localhost:2480/studio/index.html#/database/Insta/schema/editclass/Post>
> 2
> #13:358 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/13:358>
> #12:4 
> <http://localhost:2480/studio/index.html#/database/Insta/browse/edit/12:4>
>
>
> traverse out from (traverse in_Post from(select expand(distinct(@rid))from 
> (SELECT EXPAND(BOTH("Follow").out("Post")) FROM User WHERE @rid=12:2)))
>
> hello 
> how can i get the publication and who make the publication in one object 
> if ther'is any function ??
> any help please 
> Luca Garulli <https://www.facebook.com/luca.garulli> ‪#‎orientdb‬ 
> <https://www.facebook.com/hashtag/orientdb?source=feed_text> OrientDB 
> <https://www.facebook.com/groups/orientdb/> OrientDB 
> <https://www.facebook.com/pages/OrientDB/120792061343192>
>

-- 

--- 
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.

Reply via email to