I'd like to know if it is possible to create a Vertex that requires an edge in order to be created.
For example, I want to create an Invoice
class that has a HasCustomer
edge which points to Person.
I want the HasCustomer
edge to be mandatory in order to create the Invoice.
You cannot create the Invoice
unless you have the HasCustomer
edge.
I know we can have a link to Person
, but there is no referential integrity. I can delete the Person and the Invoice
will simply end up with a link to a customer that is non-existent.