diff --git a/src/neo4j-arc/graph-visualization/GraphVisualizer/Graph/GraphEventHandlerModel.ts b/src/neo4j-arc/graph-visualization/GraphVisualizer/Graph/GraphEventHandlerModel.ts index 1f78d403eb4..563eac7e4d6 100644 --- a/src/neo4j-arc/graph-visualization/GraphVisualizer/Graph/GraphEventHandlerModel.ts +++ b/src/neo4j-arc/graph-visualization/GraphVisualizer/Graph/GraphEventHandlerModel.ts @@ -230,7 +230,10 @@ export class GraphEventHandlerModel { } onCanvasDblClicked(): void { - console.log('You have double clicked the canvas!') + this.graph.addNodes([new NodeModel('New Node', [], {}, {})]) + this.visualization.update({ updateNodes: true, updateRelationships: true }) + + // this will persist node to Neo4J DB... this.onGraphInteraction(NODE_ON_CANVAS_CREATE) }