# \#relationship

**URL:** https://community.neo4j.com/tag/relationship/144.md

[Latest](https://community.neo4j.com/latest.md) · [Categories](https://community.neo4j.com/categories.md) · [Tags](https://community.neo4j.com/tags.md)

---

## [Issue with Explore Option in Neo4j 2.0.1: Relationship Changes Not Reflected](https://community.neo4j.com/t/issue-with-explore-option-in-neo4j-2-0-1-relationship-changes-not-reflected/74697)

<div class="topic-metadata">

**Author:** [@kishanb](https://community.neo4j.com/u/kishanb)\
**Replies:** 0\
**Last updated:** [July 15, 2025, 1:00pm UTC](https://community.neo4j.com/t/issue-with-explore-option-in-neo4j-2-0-1-relationship-changes-not-reflected/74697 "2025-07-15T13:00:01Z")

</div>

I'm currently using Neo4j version 2.0.1 and have encountered an issue with the Explore option in the interface. After uploading multiple CSV files and creating relationships between nodes (e.g., City → Station → Reading)…

---

## [How to add property in existing node from spark connector](https://community.neo4j.com/t/how-to-add-property-in-existing-node-from-spark-connector/73649)

<div class="topic-metadata">

**Author:** [@palak.joshi](https://community.neo4j.com/u/palak.joshi)\
**Replies:** 0\
**Last updated:** [April 25, 2025, 11:31am UTC](https://community.neo4j.com/t/how-to-add-property-in-existing-node-from-spark-connector/73649 "2025-04-25T11:31:31Z")

</div>

df.select("GRID\_ID","GRID\_CENTROID\_LON","GRID\_CENTROID\_LAT").distinct().write .format("org.neo4j.spark.DataSource") .mode(SaveMode.Append) .option("node.keys", "GRID\_ID,GRID\_CENTROID\_LON,GRID\_CENTROID\_L…

---

## [Spring Data Neo4j 7.1.2 - relationships only return empty sets](https://community.neo4j.com/t/spring-data-neo4j-7-1-2-relationships-only-return-empty-sets/63332)

<div class="topic-metadata">

**Author:** [@fabian.z](https://community.neo4j.com/u/fabian.z)\
**Replies:** 12\
**Last updated:** [March 21, 2025, 11:41pm UTC](https://community.neo4j.com/t/spring-data-neo4j-7-1-2-relationships-only-return-empty-sets/63332 "2025-03-21T23:41:21Z")

</div>

I'm using Spring 3.1.1 with SDN 7.1.2 I have the "Book" class below as a node. The other classes (for example the "Author" class), are also declared as nodes and have the complementing relationship declarations. There a…

---

## [How to count the number of relationships created in the following Cypher query?](https://community.neo4j.com/t/how-to-count-the-number-of-relationships-created-in-the-following-cypher-query/71894)

<div class="topic-metadata">

**Author:** [@awpmedusa22](https://community.neo4j.com/u/awpmedusa22)\
**Replies:** 4\
**Last updated:** [January 28, 2025, 10:24am UTC](https://community.neo4j.com/t/how-to-count-the-number-of-relationships-created-in-the-following-cypher-query/71894 "2025-01-28T10:24:17Z")

</div>

I have the following Cypher query where I am creating multiple relationships between nodes. I would like to know how to count the number of relationships that are created in this query. MATCH (task:Task {id: "$taskId"})…

---

## [How to create relationship dynamically](https://community.neo4j.com/t/how-to-create-relationship-dynamically/71981)

<div class="topic-metadata">

**Author:** [@falcon14497](https://community.neo4j.com/u/falcon14497)\
**Replies:** 2\
**Last updated:** [December 25, 2024, 12:13pm UTC](https://community.neo4j.com/t/how-to-create-relationship-dynamically/71981 "2024-12-25T12:13:48Z")

</div>

I have the following data. |id | first\_comment | second\_comment | third\_comment|..|n\_comment| |--- | --- | --- | ---|..|---| | 111|some\_comment |some\_comment |null |..|null| |112 |some\_comment |some\_comment |some\_…

---

## [Create relationship from different CSV](https://community.neo4j.com/t/create-relationship-from-different-csv/71898)

<div class="topic-metadata">

**Author:** [@apolo74](https://community.neo4j.com/u/apolo74)\
**Replies:** 2\
**Last updated:** [December 16, 2024, 12:57pm UTC](https://community.neo4j.com/t/create-relationship-from-different-csv/71898 "2024-12-16T12:57:12Z")

</div>

Hello all, I'm using neo4j desktop version 1.6.1 and I want to import data from a SQL database into Neo4J. I exported some tables into CSV format and tried to ingest the data into Neo4j Desktop. Below are a couple of sa…

---

## [Apoc.schema.nodes/relationships and permissions](https://community.neo4j.com/t/apoc-schema-nodes-relationships-and-permissions/70947)

<div class="topic-metadata">

**Author:** [@nonameiam4](https://community.neo4j.com/u/nonameiam4)\
**Replies:** 0\
**Last updated:** [October 10, 2024, 10:01am UTC](https://community.neo4j.com/t/apoc-schema-nodes-relationships-and-permissions/70947 "2024-10-10T10:01:59Z")

</div>

Hello Neo4j community, Using Neo4j as a knowledge graph for an LLM RAG, I would like to know if there is anyway to combine Fine Grained access control as per this article: Fine-grained access control (example) - Operati…

---

## [Neo4j visualitation Library - (version 0.3.1) Node labels are not visible](https://community.neo4j.com/t/neo4j-visualitation-library-version-0-3-1-node-labels-are-not-visible/69135)

<div class="topic-metadata">

**Author:** [@aravindhkrishna1922](https://community.neo4j.com/u/aravindhkrishna1922)\
**Replies:** 1\
**Last updated:** [September 16, 2024, 12:24pm UTC](https://community.neo4j.com/t/neo4j-visualitation-library-version-0-3-1-node-labels-are-not-visible/69135 "2024-09-16T12:24:18Z")

</div>

const \[nodes, setNodes\] = useState\<Node\>( \[{ id: '0' ,captions: \[{ styles: \["bold"\], value:"tag 1", key: "0", }\]}, { id: '1', captions: \[{ styles: \["bold"\], value:"tag 2", key: "1", },\]) \*\*\<InteractiveNvlWr…

---

## [The problem of searching for data through the pipeline](https://community.neo4j.com/t/the-problem-of-searching-for-data-through-the-pipeline/69559)

<div class="topic-metadata">

**Author:** [@Adasan](https://community.neo4j.com/u/Adasan)\
**Replies:** 1\
**Last updated:** [September 4, 2024, 6:28pm UTC](https://community.neo4j.com/t/the-problem-of-searching-for-data-through-the-pipeline/69559 "2024-09-04T18:28:19Z")

</div>

Colleagues, good afternoon! I am writing a web application for a small university using the Neo4j database. I faced a problem when it is necessary to create a discipline with reference to different educational programs, …

---

## [Issue Querying with Dynamic Relationship and Node Type](https://community.neo4j.com/t/issue-querying-with-dynamic-relationship-and-node-type/68611)

<div class="topic-metadata">

**Author:** [@sebchu](https://community.neo4j.com/u/sebchu)\
**Replies:** 2\
**Last updated:** [June 29, 2024, 10:48pm UTC](https://community.neo4j.com/t/issue-querying-with-dynamic-relationship-and-node-type/68611 "2024-06-29T22:48:06Z")

</div>

I want to create a generic query that can modify node type and relationship type. I referenced this link, but it seemed to not work for me. Here's my code for the query I want: default void createRelationship(Long idA…

---

## [How to model a complex parent-child hierarchy data in Neo4j from a relational structure?](https://community.neo4j.com/t/how-to-model-a-complex-parent-child-hierarchy-data-in-neo4j-from-a-relational-structure/68404)

<div class="topic-metadata">

**Author:** [@ManiK](https://community.neo4j.com/u/ManiK)\
**Replies:** 4\
**Last updated:** [June 17, 2024, 5:54am UTC](https://community.neo4j.com/t/how-to-model-a-complex-parent-child-hierarchy-data-in-neo4j-from-a-relational-structure/68404 "2024-06-17T05:54:31Z")

</div>

Hi All, I am new to graph databases and need some help on modeling. Let's assume, I have 3 sets of below CSV files with sample data: file#1: (master file with unique nodeID's and their names) nodeID, nodeName 1, A …

---

## [My first KG! Relationships not working!](https://community.neo4j.com/t/my-first-kg-relationships-not-working/67423)

<div class="topic-metadata">

**Author:** [@samvernon](https://community.neo4j.com/u/samvernon)\
**Replies:** 10\
**Last updated:** [April 22, 2024, 2:26am UTC](https://community.neo4j.com/t/my-first-kg-relationships-not-working/67423 "2024-04-22T02:26:52Z")

</div>

Hello everyone! I'm new here. I'm trying to create a KG in Aura. I have created my input data in CSV's and selected the key unique identifier for each node. I have created the relationship csv, but the relationship field…

---

## [Implementing Weighting, Time Decay, and Handling Multiple Interactions in Neo4j](https://community.neo4j.com/t/implementing-weighting-time-decay-and-handling-multiple-interactions-in-neo4j/67410)

<div class="topic-metadata">

**Author:** [@nejat-njonjo](https://community.neo4j.com/u/nejat-njonjo)\
**Replies:** 0\
**Last updated:** [April 16, 2024, 7:11pm UTC](https://community.neo4j.com/t/implementing-weighting-time-decay-and-handling-multiple-interactions-in-neo4j/67410 "2024-04-16T19:11:49Z")

</div>

Hello Everyone. I am currently working on a project where I am utilizing Neo4j as the database for a platform that allows users to interact with various listings, such as jobs and events. To enhance user engagement and …

---

## [Data storage or just Relationship in Neo4j](https://community.neo4j.com/t/data-storage-or-just-relationship-in-neo4j/67244)

<div class="topic-metadata">

**Author:** [@santanudutta85](https://community.neo4j.com/u/santanudutta85)\
**Replies:** 1\
**Last updated:** [April 8, 2024, 9:52am UTC](https://community.neo4j.com/t/data-storage-or-just-relationship-in-neo4j/67244 "2024-04-08T09:52:34Z")

</div>

Hi everyone, I'm a software engineer working on a customer application that imports sales data from Salesforce and populates a Neo4j knowledge graph. We leverage GenAI and Python scripts to query and manipulate the data…

---

## [Using dates best practice](https://community.neo4j.com/t/using-dates-best-practice/67155)

<div class="topic-metadata">

**Author:** [@yanivts1](https://community.neo4j.com/u/yanivts1)\
**Replies:** 2\
**Last updated:** [April 2, 2024, 7:45pm UTC](https://community.neo4j.com/t/using-dates-best-practice/67155 "2024-04-02T19:45:57Z")

</div>

Hi, I need to get nodes and relationships based on start date and end date... For example: a 'Company' has employees ('Person' nodes). There are some relationships for each company ('CEO', 'ProductManager', 'Engineer'…

---

## [Graph relationship filtering is not working](https://community.neo4j.com/t/graph-relationship-filtering-is-not-working/67036)

<div class="topic-metadata">

**Author:** [@dorazele](https://community.neo4j.com/u/dorazele)\
**Replies:** 4\
**Last updated:** [March 26, 2024, 5:38pm UTC](https://community.neo4j.com/t/graph-relationship-filtering-is-not-working/67036 "2024-03-26T17:38:25Z")

</div>

Hi everyone, I have two types of nodes User and Action and one type of relationship called NEXT\_STEP which can be in between User and Action and Action and Action. Every relationship has three properties: step, addr and…

---

## [Apoc.periodic.iterate is throwing null pointer exception in Neo4j 5.18.0](https://community.neo4j.com/t/apoc-periodic-iterate-is-throwing-null-pointer-exception-in-neo4j-5-18-0/67015)

<div class="topic-metadata">

**Author:** [@rohithbgs](https://community.neo4j.com/u/rohithbgs)\
**Replies:** 1\
**Last updated:** [March 25, 2024, 1:54pm UTC](https://community.neo4j.com/t/apoc-periodic-iterate-is-throwing-null-pointer-exception-in-neo4j-5-18-0/67015 "2024-03-25T13:54:55Z")

</div>

Hi All, We have started using the neo4j 5.18.0 along with the compatible apoc version (5.18) , we have noticed that while creating the relationships between the nodes using apoc.periodic.iterate is throwing the null poi…

---

## [Unable to create relationships on big Scale Factor TPCH dataset](https://community.neo4j.com/t/unable-to-create-relationships-on-big-scale-factor-tpch-dataset/66238)

<div class="topic-metadata">

**Author:** [@codrin.stefan](https://community.neo4j.com/u/codrin.stefan)\
**Replies:** 0\
**Last updated:** [February 9, 2024, 8:37am UTC](https://community.neo4j.com/t/unable-to-create-relationships-on-big-scale-factor-tpch-dataset/66238 "2024-02-09T08:37:01Z")

</div>

Hello, I am using Neo4J EE 5.10 and trying to import the TPCH dataset for scale factor 100 -\> 100GB of data. I imported the nodes with neo4j admin import (no issues here) and I started creating relationships between the…

---

## [Change Relationships name](https://community.neo4j.com/t/change-relationships-name/6473)

<div class="topic-metadata">

**Author:** [@soroosh\_nazem](https://community.neo4j.com/u/soroosh_nazem)\
**Replies:** 7\
**Last updated:** [February 8, 2024, 10:34pm UTC](https://community.neo4j.com/t/change-relationships-name/6473 "2024-02-08T22:34:08Z")

</div>

Hello Everyone I just want to know how I can change the name of relationships in neo4j. I have many relationships that have label "IS\_CONNECTED\_TO". Right now I want to substitute them all with "KNOWS". Does anybody kno…

---

## [How should I design my schema considering ROLES for users?](https://community.neo4j.com/t/how-should-i-design-my-schema-considering-roles-for-users/64832)

<div class="topic-metadata">

**Author:** [@raxmon1710](https://community.neo4j.com/u/raxmon1710)\
**Replies:** 0\
**Last updated:** [November 4, 2023, 8:56am UTC](https://community.neo4j.com/t/how-should-i-design-my-schema-considering-roles-for-users/64832 "2023-11-04T08:56:30Z")

</div>

My task: I would like to assign a role for each user but each role will have different properties. For example: English teacher might have experience\_in\_years and football\_referee might have the number of matches he ref…

---

## [Relationship Types on Disk](https://community.neo4j.com/t/relationship-types-on-disk/64292)

<div class="topic-metadata">

**Author:** [@matteweva](https://community.neo4j.com/u/matteweva)\
**Replies:** 0\
**Last updated:** [September 28, 2023, 1:57am UTC](https://community.neo4j.com/t/relationship-types-on-disk/64292 "2023-09-28T01:57:56Z")

</div>

Hi There! I have a question about how Neo4j stores its relationships on disk vs in the page cache. My current understanding is based of off this Neo4j knowledge base article about storing data on disks: Understanding N…

---

## [Creation of relationship in bulk using apoc.periodic.iterate](https://community.neo4j.com/t/creation-of-relationship-in-bulk-using-apoc-periodic-iterate/63691)

<div class="topic-metadata">

**Author:** [@jishadp8606](https://community.neo4j.com/u/jishadp8606)\
**Replies:** 7\
**Last updated:** [September 13, 2023, 2:19pm UTC](https://community.neo4j.com/t/creation-of-relationship-in-bulk-using-apoc-periodic-iterate/63691 "2023-09-13T14:19:39Z")

</div>

I'm trying to create relationship between nodes of same label with some condition. I have tried all method listed in this community but none doesn't work for my use case. The code below running without error but no relat…

---

## [Migrating SDN 4.0 to SDN 6.0: Difficulties mapping @RelationshipEntity and @StartNode, @EndNode](https://community.neo4j.com/t/migrating-sdn-4-0-to-sdn-6-0-difficulties-mapping-relationshipentity-and-startnode-endnode/35943)

<div class="topic-metadata">

**Author:** [@gviteri](https://community.neo4j.com/u/gviteri)\
**Replies:** 4\
**Last updated:** [May 18, 2023, 5:10pm UTC](https://community.neo4j.com/t/migrating-sdn-4-0-to-sdn-6-0-difficulties-mapping-relationshipentity-and-startnode-endnode/35943 "2023-05-18T17:10:07Z")

</div>

Hi all, I am having some trouble trying to migrate from SDN 4.1 to 6.0.x. We heavily use @RelationshipEntity with @StartNode and @EndNode, from the OGM. I have seem in the documentation and other posts that the way to g…

---

## [Speeding up apoc.refactor.mergeNodes query](https://community.neo4j.com/t/speeding-up-apoc-refactor-mergenodes-query/62273)

<div class="topic-metadata">

**Author:** [@space\_sam](https://community.neo4j.com/u/space_sam)\
**Replies:** 1\
**Last updated:** [April 28, 2023, 1:26am UTC](https://community.neo4j.com/t/speeding-up-apoc-refactor-mergenodes-query/62273 "2023-04-28T01:26:39Z")

</div>

Hello, I have the following cypher statement that I will be running hundreds of thousands of times: UNWIND $list\_of\_lists\_ids\_batch as row MATCH (c:Item) WHERE id(c) IN row WITH row, c ORDER BY size(\[(c)\<-\[:ITEM\_IS\_IN\]…

---

## [Apoc.periodic.iterate is never ending](https://community.neo4j.com/t/apoc-periodic-iterate-is-never-ending/62147)

<div class="topic-metadata">

**Author:** [@1996haribaskar](https://community.neo4j.com/u/1996haribaskar)\
**Replies:** 5\
**Last updated:** [April 24, 2023, 12:12pm UTC](https://community.neo4j.com/t/apoc-periodic-iterate-is-never-ending/62147 "2023-04-24T12:12:52Z")

</div>

I am using the apoc.periodic.iterate procedure to upload data from ORA DB into the Neo4j and trying to create relationships. Initially I created the nodes and now trying to match those existing nodes and creating relatio…

---

## [Is there an inbuilt mechanism to control relationship cardinality?](https://community.neo4j.com/t/is-there-an-inbuilt-mechanism-to-control-relationship-cardinality/61461)

<div class="topic-metadata">

**Author:** [@pcantoni](https://community.neo4j.com/u/pcantoni)\
**Replies:** 2\
**Last updated:** [March 16, 2023, 10:10pm UTC](https://community.neo4j.com/t/is-there-an-inbuilt-mechanism-to-control-relationship-cardinality/61461 "2023-03-16T22:10:20Z")

</div>

Although a newbie to Neo4j and cypher, I first built an in-memory, dynamic-schema, graph database over 4 decades ago (not industrial scale - just a postgrad project). One really neat feature was the ability to specify t…

---

## [Derive single value based on a property a node B related to node A from direct and indirect relationships](https://community.neo4j.com/t/derive-single-value-based-on-a-property-a-node-b-related-to-node-a-from-direct-and-indirect-relationships/60648)

<div class="topic-metadata">

**Author:** [@hiren](https://community.neo4j.com/u/hiren)\
**Replies:** 6\
**Last updated:** [February 14, 2023, 5:46am UTC](https://community.neo4j.com/t/derive-single-value-based-on-a-property-a-node-b-related-to-node-a-from-direct-and-indirect-relationships/60648 "2023-02-14T05:46:08Z")

</div>

Hello, I've just started learning Neo4j to do a POC for my current project. I want to have a final value for one of the node called Employee, say certified or not certified based on the direct relation with the Credenti…

---

## [DELETE all data from AuraDB](https://community.neo4j.com/t/delete-all-data-from-auradb/58527)

<div class="topic-metadata">

**Author:** [@gryfit](https://community.neo4j.com/u/gryfit)\
**Replies:** 4\
**Last updated:** [January 31, 2023, 4:16pm UTC](https://community.neo4j.com/t/delete-all-data-from-auradb/58527 "2023-01-31T16:16:52Z")

</div>

I was trying to delete all data from the database. And I keep having issues. First, I was told just to stop the server and delete "/data" but it's not possible on AuraDB, and generally it's the wrong solution for the sc…

---

## [Issue with relationship property creation in Spark submit job: Please provide a valid WRITE query](https://community.neo4j.com/t/issue-with-relationship-property-creation-in-spark-submit-job-please-provide-a-valid-write-query/58392)

<div class="topic-metadata">

**Author:** [@arjanv](https://community.neo4j.com/u/arjanv)\
**Replies:** 3\
**Last updated:** [January 16, 2023, 9:33am UTC](https://community.neo4j.com/t/issue-with-relationship-property-creation-in-spark-submit-job-please-provide-a-valid-write-query/58392 "2023-01-16T09:33:02Z")

</div>

Hello all, I'm using data warehouse connector to move data from Snowflake to Neo4j (AuraDB free). There are no issues when I create a relationship in a query construct, but when I try to add a property to the relations…

---

## [Reading Relationships As Line From CSV](https://community.neo4j.com/t/reading-relationships-as-line-from-csv/58317)

<div class="topic-metadata">

**Author:** [@mavisnconsultin](https://community.neo4j.com/u/mavisnconsultin)\
**Replies:** 3\
**Last updated:** [January 11, 2023, 1:49am UTC](https://community.neo4j.com/t/reading-relationships-as-line-from-csv/58317 "2023-01-11T01:49:46Z")

</div>

Please, I am trying to import a csv file into Neo4j desktop, which has a column that already defines the relationship between the two nodes in the file. Below is a simple example of what I am talking about: Name A…

[Next page](https://community.neo4j.com/tag/relationship/144.md?match_all_tags=true&page=1&tags%5B%5D=relationship)
