Hello Alessandro,

thanks for your reply, this works well. what if we want to filter posts by 
type and type is stored in post vertices. ex. type ="technical post", 
please suggest.

On Thursday, 11 August 2016 14:19:26 UTC+5:30, [email protected] wrote:
>
> Hi,
> I have tried to reproduce your graph
>
>
>
> <https://lh3.googleusercontent.com/-CNWscUYPyuQ/V6w63dWDEDI/AAAAAAAAAQI/yTY2-qSTDY8Qe7xpyAbnBwD-h8_KHurPACLcB/s1600/graph.png>
> With this query I have obtained
>
> select _id as postId, title, in("UserLikes").size() as totalLikes from (
> select expand(out("UserPosts")) from User where _id="1")
>
>
> <https://lh3.googleusercontent.com/-pKwjO0q4wns/V6w78-AXXqI/AAAAAAAAAQU/c6pR_8tEn70hSHV30IVynd3eSpp-jhIJACLcB/s1600/1.png>
>
>
> Is it similar to what you want ?
>
>
> Best regards,
> Alessandro
>
>
>
> <https://lh3.googleusercontent.com/-_tTLbOtaqJ0/V6w7M_XHqII/AAAAAAAAAQM/2cXacA9nI6UYQK-3puvpn3FSasYyMF9ZQCLcB/s1600/1.png>
>
> <https://lh3.googleusercontent.com/-_tTLbOtaqJ0/V6w7M_XHqII/AAAAAAAAAQM/2cXacA9nI6UYQK-3puvpn3FSasYyMF9ZQCLcB/s1600/1.png>
>
> <https://lh3.googleusercontent.com/-_tTLbOtaqJ0/V6w7M_XHqII/AAAAAAAAAQM/2cXacA9nI6UYQK-3puvpn3FSasYyMF9ZQCLcB/s1600/1.png>
>
> <https://lh3.googleusercontent.com/-_tTLbOtaqJ0/V6w7M_XHqII/AAAAAAAAAQM/2cXacA9nI6UYQK-3puvpn3FSasYyMF9ZQCLcB/s1600/1.png>
>
> <https://lh3.googleusercontent.com/-_tTLbOtaqJ0/V6w7M_XHqII/AAAAAAAAAQM/2cXacA9nI6UYQK-3puvpn3FSasYyMF9ZQCLcB/s1600/1.png>
>

-- 

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