Perhaps you want to use the "has" step.

g.V().has('a')
g.V().or(has('a'), has('b'))

Reply via email to