thanks a lot Alessandro, It working fine.

Once I get latest 2.2.7 I will move the logic in function.

On Thursday, 11 August 2016 17:54:03 UTC+5:30, [email protected] wrote:
>
> Hi,
> you could use this query
>
> select post._id ,post.title as title, post.in("UserLikes").size() as 
> totalLikes, if(eval(" $a.size()==0 "),"false","true") as 
> hasloggedUserLikedThisPost from (select out("UserPosts") as post,@rid from 
> User where _id="1" unwind post)
> let $a= (select from $parent.$current.post.@rid where in('UserLikes') 
> contains $parent.$current.rid) where type="technical post"
>
> Hope it helps.
>

-- 

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