Search code snippets, questions, articles... Chrome Extension

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
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool

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?
0 Comments
Join Devsheet Ask a Question