In this gremlin query:
g.V('c3833064-94aa-4084-9c0e-029543d69892').as('self')
.sideEffect(out('rated').store('movies'))
.out('friended')
.group()
.by()
.by(outE('rated')
.where(values('rating').is(gt(5))) //filter on positive scores on common rated items
.inV()
.where(within('movies')).count())
.order(local)
.by(values,desc)
.unfold().limit(10)
.select(keys)
.project('id','label','username', 'avatarUrl', 'name')
.by(id)
.by(label)
.by('username')
.by(coalesce(values('avatarUrl'), constant('')))
.by('name')
How can I exclude the 'self' user (c3833064-94aa-4084-9c0e-029543d69892) from the results. Also, suppose I want to exclude a username called 'Admin' from the results, too. How can I filter out these items?
Note: I tried adding .in('friended').where(neq('self'))
just after out('friended')
and that seemed to exclude self from the results. can i add an 'and' condition to this to exclude the 'Admin' user, too?