I would like to make a query that works on an element. But sometimes this element doe not already exist. So the query shoudl create it on demand. Like in Java the Optional::orElseGet - method.
My explicit example ("propertyWithMetaProps" is a property with cardinality "list"):
g.V(id).properties("propertyWithMetaProps").hasValue(1).{{your answer to create a property with value 1 in case such property does not exist}}.property("key","value");
Im on a remote graph. So keep in mind that I dont have access to the actual graph object.