Here we will learn to create one or multiple nodes in the neo4j graph database using Cypher queries.
// Create single node
// Create more than one node
CREATE (n), (m)
You can create single or multiple nodes in the neo4j database using the above queries. The first Cypher query will create a single node in the database and the second Cypher query will create two nodes in the neo4j graph database.
We can add properties to a node while creating it using the Cypher query. The above query will do the same. Here, we are creating a node with the label Employee and adding properties to it like name, title, and company.
After a node is created it can also be returned using the same Cypher query that is used to create it. The above Cypher query is creating a new node with label Employe and also name property is also added while creating it.