Equivalent of In

graphql

#1

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”]


#2

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

g.V("s").In("<f_clearance>").All()

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

g.V().Tag("cl").HasR("<f_clearance>").All()

or the same for a specific user:

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

#3

That Helps… I also id it via Unions

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


#4

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


#5

Thanks a bunch