A lightweight library to interface with Neo4j via the transaction cypher http endpoint
session = ExNeo.Session.create("http://localhost:7474")
or
# Uses http://localhost:7474 as the default url.
session = ExNeo.Session.create()
Add the following to config/config.exs
to change the default url:
config :ex_neo, url: defualt_url_here
Commit a cypher statement:
statement = "MATCH (node) RETURN node LIMIT 1"
session = ExNeo.Session.create()
ExNeo.commit_statement(session, statement)
If available in Hex, the package can be installed as:
-
Add ex_neo to your list of dependencies in
mix.exs
:def deps do [{:ex_neo, "~> 0.0.1"}] end
-
Ensure ex_neo is started before your application:
def application do [applications: [:ex_neo]] end
This project is far from finished. If you want to contribute/add anything to this please create an issue or send a pull request.