In NeptuneDB, I wanna check if one specific vertex exist or not, if not, create it and add some properties. Here is my implementation in Gremlin Python:
g.V().hasLabel('Event').has(T.id, idNum).fold().coalesce(unfold(), addV('Event').property(T.id, idNum)). property(Cardinality.single, 'semState', event['semState']).property(Cardinality.single, 'System', systemname).next()
but sometime the 'System' property can be null, in this case, error was thrown. So I was wondering if there is a way to check if 'System' is null in the query above, if null, skip it.