23,035 questions
2
votes
1
answer
55
views
How to specify more than two relationships to the same node in a `MERGE`
I have this situation
CREATE (a:X { id: 1 })
CREATE (b:Y { id: 2 })
CREATE (c:Z { id: 3 })
CREATE (:Z { id: 4 })
CREATE (a)-[:HAS]->(d:W { id: 5 })<-[:HAS]-(b)
CREATE (c)-[:HAS]->(d)
And I ...
0
votes
1
answer
37
views
Internal implementation of Neo4j's RBAC to handle conflicting privileges assigned for the same role
In Neo4j, when assigning write privileges on a spicific node type for a role, I can deny write permission on some property on that node type, but also grant write permission on all the node's ...
1
vote
0
answers
38
views
Failed to invoke procedure `apoc.export.csv.query`: The AWS Access Key Id you provided does not exist in our records
I'm using Neo4j Browser (from Neo4j Desktop for Windows) on my local computer to run the following Cypher query to export local graph data to a bucket on AWS S3:
CALL apoc.export.csv.query(
"...
0
votes
0
answers
33
views
Unable to access Neo4j running in Docker on VM from outside the VM
I have deployed Neo4j Community Edition (with APOC plugin) inside a Docker container running on a Linux VM.
Inside the VM, I can access Neo4j Browser on http://localhost:7474
without issues. But from ...
0
votes
0
answers
136
views
Zep Graphiti - core - Adding Episode fails the LLM structured output
On the ingestion part to the graph db, I pass a json file, as an episode, custom entities (and edges), using gemini api, but I get some discrepancy on the structured output, like so:
LLM generation ...
0
votes
0
answers
51
views
Why does Neo4j connect over TLS using bolt:// when tls_level=REQUIRED?
Neo4j Community is running on an Ubuntu Server in a virtual private network on Azure. The default HTTP for both its browser and bolt are disabled in favour of HTTPS and WSS (through self-signed ...
0
votes
1
answer
32
views
Calculating percentage from relationships in a multi-node path in Neo4j
I have a non-cyclical graph, where all the nodes are of type (label) Entity and all relationships are of type OWNS. Each relationship is guaranteed to have a property Percentage, which is the numeric ...
0
votes
1
answer
40
views
Unable to run neo4j create constraint cypher query from Databricks using pyspark connector
I am using databricks notebook and neo4j spark connector to run cypher query to create constraints. While executing its given an error.. I tried multiple ways to change the databricks runtime version ...
0
votes
0
answers
26
views
Missing or incomplete Page Cache JMX metrics for Neo4J
I'm currently using Neo4j version 4.4.42 via Neo4j Desktop and I'm able to connect to Neo4j JVM process using JConsole, and under the MBeans section, I can see some Page Cache metrics.
However, I ...
2
votes
0
answers
37
views
Spring Boot REST endpoint seems to not execute Neo4j Java driver statements (JHipster + Neo4jConfig + Neo4jService) → no Cypher run
I am integrating Neo4j into my JHipster 8.5.0 / Spring Boot 3.3.0 application.
I have configured a Neo4jConfig with a Driver bean, a Neo4jService to send Cypher statements, and a REST endpoint /api/...
1
vote
1
answer
148
views
Neo4j vector similarity function
I'm trying to understand the difference between the vector.similarity.cosine Cypher function and the gds.similarity.cosine function in Neo4j. According to the Neo4j documentation, both are used to ...
0
votes
1
answer
42
views
Fastest approach on non directional paths. Neo4j
I have a path like this:
MATCH (n:Parent)-[:has_parent|has_child*..2]-(m:Deceased)
RETURN n.name, n.age, m.name,m.age
My problem of course is that this is non-directional and super slow. In this path ...
1
vote
1
answer
150
views
CAP theorem for Neo4j, what type is it?
I can't find information on this at all. I understand that a single instance database is CA by default and that when using a cluster Neo4j by default uses casual consistency which makes it CP, but I ...
0
votes
2
answers
71
views
Neo4j check if path exists between multiple nodes
I have recently started working on Neo4J and currently I am working on migration project as part of which we need to identify few relationships existing in current Neo4J database. Below are the ...
0
votes
0
answers
32
views
Neo4j-admin import csv header
I'm using neo4j admin to import a database into neo4j via csv files. But I have a small problem/question. Currently, for a node CSV, I have this header:
id:ID(Gene-id){id-type: string};symbol:string;...
0
votes
0
answers
52
views
How to fix Arabic script in Neo4j visualization library
I’m using the Neo4j Visualization Library to display Arabic text, but the letters are rendering left‑to‑right (instead of right‑to‑left) and appear disconnected. See image below. Has anyone ...
0
votes
1
answer
72
views
Create relationship only if node merge resulted in create
Say I have some Cypher:
MATCH (f:FirstNode {with:$parametersF})
WITH f
MERGE (s:SomeNode {with:$parametersS})
ON CREATE SET s.source=$source
MERGE (s)-[:IS_CONNECTED_TO]->(f)
I want to be able to ...
0
votes
2
answers
50
views
How to rollback Neo4j transaction outside a Session
I have a Java application that connects to Neo4j. I want to test the rollback ability for my project, so I have created a sample code.
First, I am opening a session, perform a write transaction and ...
0
votes
0
answers
44
views
Error with conditional merge of nodes with cypher and apoc
I am running merging logic in cypher (neo4j 5.26) such as this:
MATCH (n:Person {name: "Tom"})
OPTIONAL MATCH (n2:Person {name:"Peter"})
CALL apoc.do.when(
n2 IS NULL,
'SET n....
0
votes
1
answer
55
views
"name" is null: Neo4j’s APOC throws a NullPointerException when trying to map a type to a property
I am trying to import a JSON Lines file into Neo4j using its APOC plugin.
In this file, each object has a coordinates property, itself an object containing the latitude, longitude and height ...
2
votes
1
answer
110
views
For given edge, find all nodes the edge lies on any path from
I have undirected connected graph with one main node (denoted by M in examples below).
I am trying to find efficient algorithm to following specification:
input is set of edges (denoted by thick ...
0
votes
1
answer
46
views
Neo4j - Count of symmetric meta-path - Include half meta-paths
I have constructed a Neo4j graph based on MovieLens100k with the following content:
Nodes: (:User), (:Movie), (:Genre)
Relations: (:User)-[:RATED]->(:Movie), (:Movie)-[:HAS_GENRE]->(:Genre)
I ...
1
vote
1
answer
43
views
Neo4j matching multiple association labels
In a Neo4j database, I'd like to find everything pointing to a single record of interest, and filter these relations by their label. I can do this with a single label like this:
MATCH path = (r:`Neo4j:...
1
vote
0
answers
42
views
Neo4j Bloom filtering on all nodes no matter their category
Title: Neo4j Bloom - Global Filter on Multiple Node Categories
Body:
I'm using Neo4j Bloom as a visualization tool on Neo4j v5.24.0 via Neo4j Desktop 1.6.1.
I have five node categories (which will ...
0
votes
1
answer
72
views
accessing a Neo4j service via ingress on my local browser
I have a pod in openshift (Azure) which embarks a neo4j database 5.20.0 (community)
The pod is running ok, and I manage to launch cypher commands in pod's terminal.
However, I'm unable to connect to ...