I am using a pattern where I match on label and name, and if there is no match then I want to create a vertex with a custom ID.
I have noticed in normal Groovy that this is done thus:
g.mergeV([(label):'person', 'name': "Wozza"]).option(onCreate, [(label): 'person', (id): 'XX-123-456-789']).next()
How would this be achieved via gremlin_python? I can do the basic merge...
g.merge_v({T.label:'person' , name':'Wozza']})
... but I have been unable to create working code for "onCreate" functionality.