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?
Similar Posts
- Get node using id Cypher query neo4j
- Get all nodes with same label using label name Cypher query neo4j
- Get all related nodes of a node using Cypher query neo4j
- Get nodes using multiple ids Cypher query neo4j
- Delete nodes using Cypher query neo4j
- Get all nodes cypher query neo4j
- Get the type of relationship variables of a node Cypher query neo4j