java - neo4j merge query to execute with REST API -
i need utilize rest api issue merge query execute neo4j database. trying refer neo4j manual, defines case of creating nodes, relationships not executing queries of like.
what needs done execute merge query? there examples in web? thanks!!!
edit: tried utilize following
string response = resource.accept( mediatype.application_json_type ) .entity( query, mediatype.application_json_type ) .post( string.class );
with query = "{\"query\":\"merge (n:person) homecoming n\"}", creates node
but when seek add together property node following
query = "{\"query\":\"merge (n:person{name:"jrapid"}) homecoming n\"}"
i encountered next error -
caused by: com.sun.jersey.api.client.uniforminterfaceexception: post http://localhost:7474/db/data/cypher returned response status of 500 internal server error
is there other way specify properties while issuing merge command in rest api?
you should find detailed error message in response or logs
double escape quotes around name or utilize single quotes
better utilize parameters
and seek utilize transactional endpoint
from mobile, w/o code or links
java neo4j
No comments:
Post a Comment