Database Reference
In-Depth Information
Usage of pattern
Let's see how queries are constructed and the way the patterns are used within the Cypher
queries:
1. Open your Unix/ Linux shell and open Neo4j shell by executing
<$NEO4J_HOME>/bin/neo4j-shell .
2. Execute the following commands on your Neo4j shell:
CREATE (n:MALE {Name:"John", Age:"24"});
MATCH (n:MALE) RETURN n;
You will see the following output on your screen:
In the previous step, we created a node with a label and properties, and then in the next
statement we searched for the same node. Refer to the following illustration which explains
the different parts of preceding Cypher query and also similarity with SQL:
Search WWH ::




Custom Search