Neo4j WHERE Clause

In Neo4j CQL WHERE clause is used to specify a condition to retrieve the exact data which we want to retrieve.

Syntax:

Example:

Let's use WHERE clause to return all the nodes from the Neo4j database where POB of the node (player) is "Chennai".

Output:

Neo4j Where clause 1

You can see it in tabular form to verify:

Neo4j Where clause 2

WHERE Clause with Multiple Conditions

You can use "WHERE" clause with multiple conditions.

Syntax:

Example:

Use the following query to filters the nodes in the Neo4j database using two conditions.

Output:

Neo4j Where clause 3

In the above example, we have used "AND" clause to specify multiple conditions.






Latest Courses