Select Subject nodes only


#1

How can I select only “Subject” nodes using the gremlin api? Using g.V().All() selects both Subject and Object.


#2

g.V().Has(g.V(), g.V()) might work, or g.V().Has(null, null), if we considered it valid


#3

Both don’t seem to work :frowning:

{
    "result": null
}

#4

Have you added .All() at the end, just to be sure?


#5

Sure, but g.V().Has(g.V(), g.V()).All() returns {"error" : "TypeError: Cannot access member 'All' of null"}


#6

Hmm, okay, need to test that