Comments (11)
Sips? Hehe. Personally, when I first started this, I never imagined I could end up taking larger gulps from Neo4j, using Elixir; Sips == humble_beginnings, maybe?! :) But then slowly-slowly, I acquired the taste for this combo; Neo4j & Elixir. One can always use alias
, when typing Neo4j.Sips
is too much. Plus, I suck at naming products in English, named methods, etc.
Janus? Yeah, a very cool library indeed, but I can't stand Gremlin. Neo4j (Cypher) is really what works for me, and for others too, and since Bolt (w/ Elixir, or course) ... unparalleled speed.
from neo4j_sips.
can you run the tests, locally?
from neo4j_sips.
After changing https://github.com/florinpatrascu/neo4j_sips/blob/master/config/test.exs#L4
to use port 7474, yeah.
I can login to the web interface with my credentials.
from neo4j_sips.
My code is
Neo4j.Sips.query(Neo4j.Sips.conn, ~s/CREATE (n:List {name: "#{event.payload[:name]}"})/)
Neo4J version is 3.1
from neo4j_sips.
is this: No matter how I configure this library, I can't seem to execute any queries
still an issue?
from neo4j_sips.
@florinpatrascu Yes
from neo4j_sips.
Not sure what is going on there. I just tried successfully the following easy test:
Interactive Elixir (1.4.2) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> alias Neo4j.Sips, as: Neo4j
Neo4j.Sips
iex(2)> Neo4j.start_link(url: "http://localhost:7373")
{:ok, #PID<0.210.0>}
iex(3)> Neo4j.query(Neo4j.conn, "return 1 as n")
12:08:05.562 [debug] POST - http://localhost:7373/db/data/transaction/commit - {"statements":[{"statement":"return 1 as n"}]}
{:ok, [%{"n" => 1}]}
iex(4)> Neo4j.server_version
"3.1.0"
My test Neo4j db is on port 7373
, no auth, fwiw. HTH
from neo4j_sips.
Also:
iex(7)> Neo4j.query(Neo4j.conn, "CREATE (n:List {name: {name}})", %{name: "a_name"})
12:16:07.870 [debug] POST - http://localhost:7373/db/data/transaction/commit - {"statements":[{"statement":"CREATE (n:List {name: {name}})","parameters":{"name":"a_name"}}]}
{:ok, []}
iex(8)> Neo4j.query(Neo4j.conn, "match (n:List {name: 'a_name'}) return n")
12:17:38.523 [debug] POST - http://localhost:7373/db/data/transaction/commit - {"statements":[{"statement":"match (n:List {name: 'a_name'}) return n"}]}
{:ok, [%{"n" => %{"name" => "a_name"}}]}
from neo4j_sips.
This must be something to-do with my setup. I'll tear it down and back up and we'll close this for now. Thanks for taking the time to help me out!
from neo4j_sips.
np, please let me know how it goes. I am planning anyway, to update the dependencies for this lib; clean up the code a bit, etc., and I can debug this further, if need be?! If you're planning to use Neo4j for a project, I'd kindly suggest to use bolt_sips
. Not sure if the HTTP REST API will be supported for too long, by Neo4j. Bolt is definitely the way to go. HTH
from neo4j_sips.
Yeah, I'll get Bolt working. Why "Sips" btw? I've seen a few Elixir projects use that suffix, I don't think I know what it means.
Have you ever used Janus graph? I'm torn between that and Neo4j
from neo4j_sips.
Related Issues (14)
- Multiple Endpoints HOT 6
- Injection? HOT 6
- tx_commit/1 doesn't appear to work, transactions generally wonky HOT 21
- abstractions for node/relationships HOT 24
- Cannot run anything from Neo4j.Sips HOT 4
- Can't connect to Neo4j after update from 3.0 to 3.1 HOT 15
- TODO List HOT 7
- Models: how to create properties on relationships HOT 4
- Basic auth doesn't seem to work properly? HOT 6
- Production? HOT 3
- getting hex dependency conflict HOT 3
- Ecto adapter HOT 6
- Cypher query builder HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neo4j_sips.