I am trying to use a filter step to filter vertices by id, but unsure of how to do this.
Here is roughly what I am trying to do.
g.V().has(label, 'Users').filter(id().is(eq("Users:77287168:1051")))
g.V().has(label, 'Users').filter(id().is("Users:77287168:1051"))
Both of the above always return 0 records. However
g.V().has(label, 'Users').filter(hasId("Users:77287168:1051"))
This works as intended and I am getting the a User with the given id.
Again the above is only representational and I would just like to know how/what would it take to do an id()
comparison inside my filter function. For instance I am expecting my traversal argument to filter to traverse vertices and I would like to compare it against the current traversal's vertex id.