%% Create Single Node
% Create a single node in a Neo4j® database and display the contents of the node.
%
% Create a Neo4j database connection using the URL http://localhost:7474/db/data, user name neo4j, and password matlab.

url = 'http://localhost:7474/db/data';
username = 'neo4j';
password = 'matlab';

neo4jconn = neo4j(url,username,password);

%
% Check the Message property of the Neo4j connection object neo4jconn. The blank Message property indicates a successful connection.

neo4jconn.Message

%
% Create a single node in the database using the Neo4j database connection.

createNode(neo4jconn)

% When you execute the createNode function without any arguments except the Neo4j database connection, the function creates a single node without labels and properties.
%
% Close the database connection.

close(neo4jconn)

% Copyright 2018 The MathWorks, Inc.