Category "neo4j"

Neo4j In Query with dynamic array

var arr = ["a","b","c","d"]; await session.run(`MATCH (x:Test WHERE x.name IN ${arr}`) I use the neo4j database in nodeJs and I am writing queries but I am tak

Cypher: get all the relationships of node with a specific relationship

I'm trying to find all the relationships of the nodes which have one specific relationship. People can be connected to events which in turn are connected to chu

Graph Data Science Error (APOC Metadata Procedure Unavailable)

I have imported my data into my dbms and installed the plugins APOC (4.2.0.0) and the Graf Data Science Library (1.4.1). When I open the playground i get the fo

Neomodel: unique_index not working on StringProperty()

I have a company node where the name should be unique: class Company(StructuredNode): name = StringProperty(unique_index=True) participated = ArrayPrope

Adding New Relationships in Neo4j Database using apoc.periodic.iterate

I have a Neo4j database with two kinds of nodes - Authors and Articles. Some of the articles have more than one author. I am trying to create an undirected rela

Matching edge in Neo4j Cypher is really slow

I have a database with 500K nodes and 700K relationships. I created 500 additional relationships with a new typeDummyEdge with edge_id attributes from "1" to "5

Match One or the other condition

I'm trying to do something like this : Flow must have a relationship with : An Application OR A Partner My Flow must have one of these two relationships. I t

Neo4j cannot be started because the database files require upgrading and upgrades are disabled in the configuration

Getting the error "Neo4j cannot be started because the database files require upgrading and upgrades are disabled in the configuration. Please set 'dbms.allow_u

Convert datetime to timestamp in Neo4j

How to convert datetime in data loaded in Neo4j to timestamp? Example datetime format: 2020-04-07T12:39:38.027Z Please assist.

How to get all parent nodes of a particular node based on ID

I want to fetch all 3rd level nodes(4,5,6 and 7 in below pic) and its relationships along with its parent node details In the below example: If I send ID : 7 t

Neo.ClientError.Statement.ExternalResourceFailed

load csv with headers from 'file:///C:/Users/user/Desktop/Neo4J' as row Create (:State_Code {state_cd:row.st_cd}) I have tried this code and it is throwing a

Neo4j Deployments / Versioning

We have Neo4j environments set up on developers' machines, QA and Production. When doing development, we make schema changes, add nodes, add relationships, rena

Neo4j subgraph of different nodes with different labels and relationship if any

I recently started using neo4j and its query language "cypher" for working with building/metering data. My current graph database consists of different nodes (w

Parsing py2neo paths into Pandas

We are returning paths from a cypher query using py2neo. We would like to parse the result into a Pandas DataFrame. The cypher query is similar to the followin

is it a good pratice to store authentication data in neo4j nodes?

This may seem to be an ingenuous question but i searched for examples without finding anything about. So, is it a good pratice to store authentication data such

Clone nodes and relationships with Cypher

Is it possible to clone arbitrary nodes and relationships in a single Cypher neo4j 2.0 query? 'Arbitrary' reads 'without specifying their labels and relationshi

Neo4j search for second shortest path

We know that we can get the shortest path between nodes by the following statement MATCH p=allShortestPaths((a)-[*]->(b)) Is there any way to search for t