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
0
votes
1 answer

How do I retrieve non blank objects from a Cypher Query in Node.js

Given a node, I want to query for any incoming relationships for that node and return nodes that have that relationship. I am modifying Node Neoj4 Template I am expecting to get back an array of nodes, create objects for each element and then…
0
votes
2 answers

Getting the next node id for a Neo4j Node using the REST API

EDIT When i am talking about node and node id i am specifically talking about the Neo4j representation of a node not node as in Node.js I am building out an application on top of Neo with node using the thingdom wrapper on top of the REST API and i…
Modika
  • 6,192
  • 8
  • 36
  • 44
0
votes
2 answers

neo4j 2.0 not creating node but running successfully

Have a Neo4j 2.0 enterprise instance running. Using the jars from the lib directory to run this groovy script import org.neo4j.graphdb.GraphDatabaseService import org.neo4j.graphdb.ResourceIterable import org.neo4j.graphdb.Transaction import…
Badmiral
  • 1,549
  • 3
  • 35
  • 74
0
votes
1 answer

Neo4j node api don't know how to find/get node by parameters not only id

i'm new to neo4j, i'm reading the documentation and a sample, small app based on the node module (neo4j), but i don't see a way to get a node or nodes based on parameter/r. something like: var node = db.find({user: "WillSmith@iam.com", password:…
Aleksandrenko
  • 2,987
  • 6
  • 28
  • 34
0
votes
1 answer

Run Cypher at starting point from node(1)

I don't know why I create a graph in Neo4j, it always have node[0] containing nothing, so when using For loop for Iterator result, I got some exceptions like: 'title' property not found for NodeImpl#0. at…
kennek
  • 15
  • 4
0
votes
1 answer

Issues running neo4j enterprise in HA mode

I am trying to setup 3slaves and 1master. Please look at this error below and why it gets timedout ? $ neo4j start WARNING! You are using an unsupported Java runtime. Please use JDK 6. Starting Neo4j Server...12:39:19,754 |-INFO in…
hiteshpariyani
  • 371
  • 3
  • 5
0
votes
1 answer

How to get/delete all relationships from a node using node-neo4j?

I need to delete a node from a neo4j db but according to the docs all the node's relationships have to be deleted first, so guess I need to get the list of those relationships and then delete them one by one. node.getRelationships(type) returns…
Alex Brown
  • 295
  • 3
  • 7
-1
votes
1 answer

multiple gremlin commands combined as one

im using nodejs, neo4j with node-neo4j and trying to put multiple gremlin command together and im stuck with this problem if i execute the commands one after another like x = [] as Set y = [] as…
Parv Sharma
  • 12,581
  • 4
  • 48
  • 80
1 2 3
4