Using the Transactional endpoint seems to generate a " No 'Access-Control-Allow-Origin'" error -- jsonp?!
Is there a setting in the neo4j service for this? Will test again.... Dave On Friday, September 5, 2014 4:42:55 PM UTC-4, Michael Hunger wrote: > > 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] <javascript:>>: > > 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] <javascript:>. > 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.
