Skip to content

ascrookes/ex_neo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExNeo

A lightweight library to interface with Neo4j via the transaction cypher http endpoint

Create a session

session = ExNeo.Session.create("http://localhost:7474")

or

# Uses http://localhost:7474 as the default url.
session = ExNeo.Session.create()

Session Config

Add the following to config/config.exs to change the default url:

config :ex_neo, url: defualt_url_here

Cypher

Commit a cypher statement:

statement = "MATCH (node) RETURN node LIMIT 1"
session = ExNeo.Session.create()
ExNeo.commit_statement(session, statement)

Installation

If available in Hex, the package can be installed as:

  1. Add ex_neo to your list of dependencies in mix.exs:

    def deps do [{:ex_neo, "~> 0.0.1"}] end

  2. Ensure ex_neo is started before your application:

    def application do [applications: [:ex_neo]] end

Contributions

This project is far from finished. If you want to contribute/add anything to this please create an issue or send a pull request.

About

Neo4j Basic Rest Driver for Elixir

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages