The following guides describe how to create a simple Hello, World!
program that connects to the Memgraph database and executes simple queries:
If users wish to query Memgraph programmatically, they can do so using the Bolt protocol. Bolt was designed for efficient communication with graph databases and Memgraph supports versions 1 and 4 of the protocol. Bolt protocol drivers for some popular programming languages are listed below:
​C#​
​C/C++​
​Go​
​Haskell​
​Java​
​JavaScript​
​Node.js​
​PHP​
​Python​
​Ruby​
​Rust​
Secure connections are supported and disabled by default. The server initially ships with a self-signed testing certificate. The certificate can be replaced by editing the following parameters in /etc/memgraph/memgraph.conf
:
--bolt-cert-file=/path/to/ssl/certificate.pem--bolt-key-file=/path/to/ssl/privatekey.pem
To disable SSL support and use insecure connections to the database you should set both parameters (--bolt-cert-file
and --bolt-key-file
) to empty values.