Neo4j - Return ClauseIn Neo4j, RETURN clause is used to return nodes, relationships and properties. By using RETURN clause, you get the following things:
Return a single NodeSyntax: Example: First create some nodes and relationships before proceeding for the example. This will create 3 nodes and 2 relationships. Now RETURN a single node. Output: Return Multiple NodesSyntax: Example: Let's return 2 nodes c and CT2013 Output: Return RelationshipsSyntax: Example: See this example which creates two relationships and returns them. Output: Return PropertiesSyntax: Example: Let's return the properties of a node p. Output: Return All ElementsExample: Output:
Next TopicNeo4j Order By Clause
|