Given a list of a priori known property values (e.g., names), I'm attempting to use gremlin-python to tell me which of said values are not presently the values of a vertex property.
So for instance, I'd have
g.addV().property('name', 'Alice').addV().property('name', 'Bob').iterate()
...which gives me two vertices, as expected.
...and then suppose I want to compute that 'Charlie' is not a known name at present:
g.inject(['Alice', 'Bob', 'Charlie']).unfold().as_('nm').not_(__.V().has('name', P.eq('nm'))).toList()
...unfortunately, this simply returns the injected list with all three names, where I'd expected it to return simply ['Charlie']. I've tried some variations on this theme, e.g., using a "where" clause and dropping the "P.eq" clause, but it provides much the same results. Ultimately, I plan to extend the query further after I load the missing name (e.g., 'Charlie') onto my traverser.
Any help or pointers is very much appreciated, thanks for your time!