Questions tagged [node-neo4j]

It uses Neo4j's REST API.

This library supports and has been tested against Neo4j 1.4 through Neo4j 1.8.

Here's a simple example:

var node = db.createNode({hello: 'world'});     // instantaneous, but...
node.save(function (err, node) {    // ...this is what actually persists.
    if (err) {
        console.err('Error saving new node to database:', err);
    } else {
        console.log('Node saved to database with id:', node.id);
    }
});
53 questions
1
vote
1 answer

How to abort query on demand using Neo4j drivers

I am making a search engine application using Node.js and Neo4j that allows users to submit a graph traversal query via a web-based user interface. I want to give users the option to cancel a query after it has been submitted (i.e. if a user decides…
Shrey Gupta
  • 5,509
  • 8
  • 45
  • 71
1
vote
1 answer

Neo4j write performance improvement

I have scenarios like below: CREATE (p:Person{guid:1}) CREATE (b1:Book{guid:1}) CREATE (b2:Book{guid:2}) CREATE (b3:Book{guid:3}) MATCH (p:Person{guid:1}),(b1:Book{guid:1}) CREATE (p)-[:READ]->(b1) MATCH (p:Person{guid:1}),(b2:Book{guid:2}) CREATE…
Krishna Shetty
  • 1,361
  • 4
  • 18
  • 39
1
vote
1 answer

Trouble with reading nodes with node-neo4j & Debugging skills with neo4j-shell

I'm new to Neo4J. So far, I successfully installed and started the Neo4J server and I checked it by running the command neo4j status. By using node-neo4j driver to add & update nodes to the database. In my nodejs server, I create a new database: db…
ankakusu
  • 1,738
  • 8
  • 26
  • 37
1
vote
3 answers

How to get node-neo4j return nodes with data only

I am using node-neo4j for connecting to neo4j graph database. I noticed that whenever I tried to get all nodes (for e.g. users), the json result return has way too much information that I do not need. Here's the code to return all users…
hrusli
  • 283
  • 3
  • 14
1
vote
2 answers

How to limit subnodes from each nodes Neo4j Cypher

I am new to Neo4j,I have the following situation In the above diagram represented a node with label user with sub-nodes having label shops. Each of these sub-nodes have sub-nodes with label items. Each node items has attribute size and the items…
SarathSprakash
  • 4,614
  • 2
  • 19
  • 35
1
vote
0 answers

Neo4j http API NullPointerException

I am using the HTTP API to query the Neo4j server. The exact same queries with slightly different values do not work consistently. Infact the entire system breaks because of the NullPointer exception that is being thrown. Cannot figure out the root…
Shiva
  • 56
  • 3
1
vote
1 answer

How to create relation between nodes grouped under labels in neo4j?

I had created two group of nodes in graph using the following cypher query pharma group CREATE ( p1:pharma { name: " Magnesium ", id: " 12 " } ) CREATE ( p2:pharma { name: " Hyoscine Butylbromide ", id: " 22 " } ) CREATE ( p3:pharma { name: "…
Gopipuli
  • 393
  • 1
  • 12
  • 37
1
vote
2 answers

Correct way to provide the 'query' parameter to Neo4j within Cypher REST API in node.js

How to compose correct Cypher query through POST request to Neo4j in node.js? Code: var http = require('http'); var options = { host: 'a90cfa68c.hosted.neo4j.org', port: 7357, path: '/db/data/cypher', method: 'POST', headers: { …
Dmitriy F.
  • 38
  • 6
1
vote
1 answer

Does neo4j have all the proper apis and support for all the mentioned drivers?

I used Node js for my webapp and I wanted to create a new user with unique email ID and hence that required me to look up the index table but then I realised that the Node Driver doesn't have the index() function as the one in Java( graphDb.index()…
rahulg
  • 2,183
  • 3
  • 33
  • 47
1
vote
2 answers

neo4j: java error: property not found for NodeImpl#0

I'm writing a neo4j demo code in java. Following is a part of code where I'm creating nodes, indexing them and printing their properties. String NODE_KEY = "UserID"; String NODE_PROPERTIES = "UserProperties"; createAndIndexUser(String userID){ …
N D Thokare
  • 1,703
  • 6
  • 35
  • 57
0
votes
1 answer

Get relationships of a specific profile

I'm attempting to get all friend requests of a specific profile. The cypher query that I have is the following: .run( 'MATCH (p:Profile {uuid: $profileUuid})' + ' OPTIONAL MATCH (p)-[friendRequests:FRIEND_REQUEST]->(u)' + ' OPTIONAL MATCH…
0
votes
1 answer

Nodejs with Neo4j: Sytax error on a multi - merge query

I have the following function that inserts a row of data into a row based-entry (excell or csv entries) into my neo4j: self.insertFromExcellRow=function(row){ // _neo4j a neo4j connection from neo4j-driver const session =…
Dimitrios Desyllas
  • 9,082
  • 15
  • 74
  • 164
0
votes
2 answers

graphenedb_url connection error

My graphebedb_url is gotten from heroku to access my neo4j database online. It is correct but when I initiate db connection. It returns error 403.which is forbidden request.
0
votes
1 answer

Neo4j match array value with node property

I am trying with this query MATCH(u:User) WHERE ANY(name IN ['ACB','xYz'] WHERE u.first_name =~ "(?i).*name.*") RETURN u it is considering (?i).*name.* as static text instead of dynamic value from name IN ['ACB','xYz'].