-
Notifications
You must be signed in to change notification settings - Fork 14
Create Node
Piotr Mikstacki edited this page Feb 5, 2023
·
2 revisions
To create a node, define its properties and labels. then call Connection.CreateNode()
var properties = new Dictionary<string, string>();
var labels = new HashSet<string>();
properties.Add("Name", "Alice");
labels. Add("Person");
var nodeOne = Connection.CreateNode(properties, labels);
//We clear properties to create another node
properties.Clear();
labels.Clear();
properties.Add("Name", "Steve");
labels. Add("Person");
var nodeTwo = Connection.CreateNode(properties, labels);