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.