-
Notifications
You must be signed in to change notification settings - Fork 14
Create Relation
Piotr Mikstacki edited this page Feb 5, 2023
·
1 revision
To create a relation we need to query both nodes that we want to connect. We can use the
Connection.CreateRelation(
"Likes",
sn => Connection.Nodes().Properties("Name".Value("Steve")).Labels("Person").FirstOrDefault()
,tn => Connection.Nodes().Properties("Name".Value("Alice")).Labels("Person").FirstOrDefault()
,properties, labels);