I have a table called Customer with primary key CustomerId.
I have a graph node called CustomerNode. The CustomerNode has CustomerId as one of the columns. I want to establish a referential integrity between these two tables so an accidental deletion of a Customer must not happen. A Customer must be deleted only after the CustomerNode is deleted.
I looked at this documentation, but don't see any reference to how to build relationships between a graph node and a table. SQL Server Management Studio also does not provide a "design" option to do that.
Is it possible to create a relationship between a graph node table and another flat table?
A regular foreign key seems to do what you want. Here's my sample code