Select Subject nodes only


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


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


Both don’t seem to work :frowning:

    "result": null


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


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


Hmm, okay, need to test that