Closed sizovilya closed 3 years ago
PS: I reproduced this query with gremlin.js and it works right.
const currentUserId = "5";
const res = await g
.V()
.has('hashtag', 'val', 'vacation')
.outE("consists")
.inV()
.has("post","deleted",false)
.where(
_.or(
_.inE("created")
.outV()
.has("user","deleted",false)
.has("user","privacy",1),
_.inE("created")
.outV()
.has("user","deleted",false)
.has("user","privacy",0)
.inE("subscribed")
.outV()
.has("user","userId",currentUserId)
)
)
.not(
_.inE("created")
.outV()
.has("user","deleted",false)
.outE("blacklist")
.inV()
.has("user","userId",currentUserId)
)
.order().by("date_created",order.desc)
.fold()
.as("posts","count")
.select("posts","count")
.by(gremlin.process.statics.range(gremlin.process.scope.local,0,10))
.by(gremlin.process.statics.count(gremlin.process.scope.local))
.toList();
Hi, can you print g to console and paste the output here in order to see query output?
Hello guys. While i was writing some not trivial query with grammes i saw that steps .Where() and .Or() are not working. (Or i did something wrong.) Can you check the syntax of my query ?
Is it right ? Logs: