Search code examples
gremlingremlin-servergremlinpythontinkerpop

How to pass multiple id's/values in the gremlin query?


How to pass multiple id's/values in the gremlin query?

g.V().hasNot(T.id, [need_to_pass_multiple_id's]).....

Solution

  • Found without(). This traversal helps to remove the given id's

    g.V().has(T.id, without('id1', 'id2'))