Equivalent of In



Hi there,

I have the quad defined as followed

</en/user/1/acm> <f_clearance> "s" .

How can I write a Gremlin Query where I can look for a value amongst a list like [“s”,“c”,“u”]


There is an In function already to get from “s” to a user:


If out want all such relations, you can use HasReverse:


or the same for a specific user:

g.V().Tag("cl").HasR("<f_clearance>", "</en/user/1/acm>").All()


That Helps… I also id it via Unions

On the same line How can I do a “Not in”


We have .Except() function for “Not In”.


Thanks a bunch