Re: [Neo4j] How to return random records in Neo4j using Cypher?

2014-03-05 Thread Michael Hunger
I created a graph gist for documenting this: http://gist.neo4j.org/?9362989 HTH Michael Am 04.03.2014 um 12:44 schrieb Rio Eduardo : > I have query like this: > $query = "MATCH (U:User) > RETURN U > ORDER BY RAND() > LIMIT 100"; > > But when I ru

[Neo4j] How to return random records in Neo4j using Cypher?

2014-03-04 Thread Rio Eduardo
I have query like this: $query = "MATCH (U:User) RETURN U ORDER BY RAND() LIMIT 100"; But when I run this, this shows errors. It says: Caught Exception: Unable to execute query [400]: Headers: Array ( [Content-Type] => application/json; charset=UTF-8; stream=true [Access-Control-Allow-Orig