Questions tagged [neo4jphp]

PHP wrapper of the Neo4j REST interface

PHP Wrapper Library location and additional documentation can be found at the official github page https://github.com/jadell/neo4jphp

109 questions
7
votes
3 answers

How to find node with no incoming relationship in neo4j

I am having 2 node types lets say of type 'Student' and 'Teacher' Student have {id, name}. Teacher have {id, name}. Student can have optional relationship with Class node as 'TEACHES'. (t:Teacher)-[r:TEACHES]->(c:Student). [r:TEACHES] - Optional…
Somnath Muluk
  • 55,015
  • 38
  • 216
  • 226
5
votes
1 answer

what does transaction mean in reference with neo4j database

I got a bit confuse with term transaction. Suppose in transaction A we have two commands C1 and C2 and same in transaction B. Now both transaction come at same time then Are these observations correct? All commands of transaction A C1 and C2 will…
voila
  • 1,594
  • 2
  • 19
  • 38
4
votes
1 answer

Neo4j - Duplicates Despite Using Merge

I am attempting to generate a database using MERGE statements through Neo4JPHP. All of my queries are using MERGE; however, it is generating separate nodes every time, resulting in massive duplication. The queries are run within a single…
randak
  • 1,941
  • 1
  • 12
  • 22
4
votes
1 answer

Parametrizing relationship depth Neo4jphp

I am new to Neo4j. I have the following query in which I tried to parametrize the depth value for the relationship and it shows an error, If I remove parametrizing the depth value it works perfectly. $query="MATCH…
SarathSprakash
  • 4,614
  • 2
  • 19
  • 35
3
votes
1 answer

cypher limit in neo4j including duplicate rows

Using Neo4J with Cypher I am trying to aquire what is essentially a users "wall". In this wall is posts by you, your friends, and the posts comments. This is my query so far: match…
RedactedProfile
  • 2,748
  • 6
  • 32
  • 51
3
votes
1 answer

Neo4j - family graph design and ancestor/pedigree lookup

I just started playing around with Neo4j, so my apologies if this is a simple concept... I'm building a relatively large database of family information (a few million nodes with about 5-15 properties per node). As of right now, all data is being…
Jeff
  • 6,643
  • 3
  • 25
  • 35
3
votes
2 answers

use neo4jphp to get user posts, with likes and comments

I am new to neo4j and currently using Neo4jphp library with cypher to store and retrieve nodes. My logic is fairly simple. I want to get a node (post) and get all its likes (count of likes) and all comments (nodes) with their commenters (nodes of…
Zakaria Alami
  • 61
  • 1
  • 6
3
votes
2 answers

How to soft delete functionality in neo4j?

In relational databases like mysql I was used to do soft delete by setting deleted_at. And then for retrieving SELECT just get rows WHERE deleted_at IS NULL. I am confused how to implement soft delete in neo4j database. There are multiple ways I am…
Somnath Muluk
  • 55,015
  • 38
  • 216
  • 226
3
votes
2 answers

neo4j: authentication - only allow reading cypher queries

I'm using neo4j 1.9.4 and I would like to display some information about the graph on a (public) website using neo4jphp. In order to fetch some data I use cypher queries within neo4jphp. Those queries obviously only read data from the graph. I have…
user2752625
  • 83
  • 2
  • 9
3
votes
0 answers

Neo4j exception when inserting data

I'm trying to insert bulk data into Neo4j using a script. After a while the script breaks with the following Exception. PHP Fatal error: Uncaught exception 'Everyman\Neo4j\Exception' with message 'Unable to execute query [400]: Headers: Array ( …
Gunjan
  • 1,177
  • 2
  • 11
  • 22
3
votes
1 answer

Creating bi-directional relation between two nodes using the neo4jphp function "relateTo"

I create a relationship as the following in Neo4php $src->relateTo($dst, 'FRIENDS') ->setProperty('duration', '5') ->save(); I want the relationship be undirected not directed. If I am not wrong we can do this in Cypher create…
user1848018
  • 1,086
  • 1
  • 14
  • 33
2
votes
0 answers

Store session details in database laravel-neo4j

Hello everyone, I am new to neo4j. I have built a test app. It is a simple laravel-neo4j user login and register app. Everything works fine. But I want to store the session details in the database, not in the file. So I have tried this method and…
Rich
  • 155
  • 1
  • 8
  • 23
2
votes
2 answers

working on Neo4j / graph database through php

I am working on a project for which I need work on graph database. So I have learnt basics of Neo4j (cypher language) .But I do not know how to access / query the database from php. Or suggest me any other way to work on graph database. Help will be…
tarun14110
  • 940
  • 5
  • 26
  • 57
2
votes
2 answers

Graphstory and Neo4jphp

I have succesfully used neo4jphp library with graphenedb with this simple steps as per documentation (considering that graphenedb does not require https) require('vendor/autoload.php'); // or your custom autoloader // Connecting to a different port…
Pempo
  • 63
  • 7
2
votes
1 answer

Create is working but MERGE in neo4j post params has error

I have the code below .And a I am getting this error.How can I fix it ? BTW CREATE for the same is working:
jason
  • 3,932
  • 11
  • 52
  • 123
1
2 3 4 5 6 7 8