Connecting via curl
Using curl with Neo4j on GrapheneDB
About connection parameters
We've used test credentials for all the following examples. Please replace them with your real connection parameters.
You'll find all the required information to connect to your database on our admin panel if you navigate to the Connection section. More on connecting to your database here.
curl
curl is free and open source software to transfer data from or to a server, using one of the supported protocols.
This tool is useful to run queries using the Neo4j transactional HTTP endpoint. You’ll find more detailed information about this endpoint here.
Here’s a sample request to begin and commit a transaction for creating a dummy node:
curl -i -H 'Content-Type: application/json' \
https://neo4j:[email protected]:24780/db/data/transaction/commit \
-d '{"statements": [{"statement": "CREATE (n:Person {name: \"Bob\"})"}]}'
You can find the documentation for curl here: https://curl.haxx.se/
Updated about 3 years ago