I use the transactional endpoint not the old one. Also you see that I don't use dataType json and that I stringify my post data myself ?
Michael Am 05.09.2014 um 20:21 schrieb David Bigelow <[email protected]>: > NADA! > > > var query_PATHS = "match n where n.name =~'.*{myParam}.*' return n"; > > var cypherRequest = { > statements : [{ > statement: query_PATHS, > parameters: 'myParam', > resultDataContents: ["row", "graph"] > }] > } > > > > $.ajax( > { > url : "http://localhost:7474/db/data/cypher", > type: "POST", > data : cypherRequest, > dataType: "json", > success: function(obj, textStatus, jqXHR) > { > ....... > > --- START ERROR --- > { > "message" : "You have to provide the 'query' parameter.", > "exception" : "BadInputException", > "fullname" : "org.neo4j.server.rest.repr.BadInputException", > "stacktrace" : [ > "org.neo4j.server.rest.web.CypherService.cypher(CypherService.java:81)", > "java.lang.reflect.Method.invoke(Method.java:606)", > "org.neo4j.server.rest.transactional.TransactionalRequestDispatcher.dispatch(TransactionalRequestDispatcher.java:139)", > "java.lang.Thread.run(Thread.java:744)" ] > } > ---- END ERROR --- > > I tried changing "statement" to "query" -- no difference... > > Dave > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
