neo4j

Return 10 rows using LIMIT Cypher query neo4j

You can return 10 records or n number of records using Cypher query from neo4j graph database by using LIMIT inside your query.

MATCH (n)
RETURN n
LIMIT 10

In the above Cypher query, we are returning 10 records using the Cypher query.

MATCH (n)
RETURN n
ORDER BY n.title
LIMIT 10
Using the above Cypher we are ordering the records by their title property using the ORDER BY clause and then returning the first 10 records from them.
Was this helpful?