# \#java-api

**URL:** https://community.neo4j.com/tag/java-api/204.md

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

---

## [Where to store local json file for access by stored procedure in Desktop](https://community.neo4j.com/t/where-to-store-local-json-file-for-access-by-stored-procedure-in-desktop/72629)

<div class="topic-metadata">

**Author:** [@jimallen](https://community.neo4j.com/u/jimallen)\
**Replies:** 4\
**Last updated:** [February 12, 2025, 3:11pm UTC](https://community.neo4j.com/t/where-to-store-local-json-file-for-access-by-stored-procedure-in-desktop/72629 "2025-02-12T15:11:17Z")

</div>

Hello, I've written a stored procedure to load a graph with objects from a json file from Neo4j Desktop. I'm running in MacOS. However, I don't know where to put the json file for reference by a FileReader. E.g.: new F…

---

## [How to batch transaction in Java Neo4J API using CALL { } IN TRANSACTIONS?](https://community.neo4j.com/t/how-to-batch-transaction-in-java-neo4j-api-using-call-in-transactions/71717)

<div class="topic-metadata">

**Author:** [@awpmedusa22](https://community.neo4j.com/u/awpmedusa22)\
**Replies:** 1\
**Last updated:** [December 3, 2024, 11:06pm UTC](https://community.neo4j.com/t/how-to-batch-transaction-in-java-neo4j-api-using-call-in-transactions/71717 "2024-12-03T23:06:22Z")

</div>

I am developing a Java application using Neo4j version 5.20.0 (implementation "org.neo4j:neo4j:5.20.0" ) and I want to save a list of Person objects in the database. Currently, I have a method for creating nodes that us…

---

## [Unable to create a relationship with save method of Neo4jRepository](https://community.neo4j.com/t/unable-to-create-a-relationship-with-save-method-of-neo4jrepository/62773)

<div class="topic-metadata">

**Author:** [@borgesiros](https://community.neo4j.com/u/borgesiros)\
**Replies:** 4\
**Last updated:** [June 25, 2023, 10:38pm UTC](https://community.neo4j.com/t/unable-to-create-a-relationship-with-save-method-of-neo4jrepository/62773 "2023-06-25T22:38:57Z")

</div>

Hello, I am trying to create a set of CRUD REST APIs for Neo4j. Everything works fine except I am unable to create a new relationship. These are the entities: @Node("Movie") @Getter @Setter @AllArgsConstructor @ToStri…

---

## [Reactive + Spring boot + Neo4j multiple db - unable to detect customized driver configuration](https://community.neo4j.com/t/reactive-spring-boot-neo4j-multiple-db-unable-to-detect-customized-driver-configuration/56811)

<div class="topic-metadata">

**Author:** [@patrasoumya100](https://community.neo4j.com/u/patrasoumya100)\
**Replies:** 0\
**Last updated:** [May 25, 2022, 6:05pm UTC](https://community.neo4j.com/t/reactive-spring-boot-neo4j-multiple-db-unable-to-detect-customized-driver-configuration/56811 "2022-05-25T18:05:07Z")

</div>

We are trying to configure two different neo4j db instance of same URI in reactive spring boot application. We have configured two different configuration as well. One of the configuration mentioned below but it's not de…

---

## [Reactive + Spring Boot + Neo4j + SDN Multiple DB - Unable to detect customized driver configuration](https://community.neo4j.com/t/reactive-spring-boot-neo4j-sdn-multiple-db-unable-to-detect-customized-driver-configuration/56813)

<div class="topic-metadata">

**Author:** [@patrasoumya100](https://community.neo4j.com/u/patrasoumya100)\
**Replies:** 0\
**Last updated:** [May 25, 2022, 6:16pm UTC](https://community.neo4j.com/t/reactive-spring-boot-neo4j-sdn-multiple-db-unable-to-detect-customized-driver-configuration/56813 "2022-05-25T18:16:56Z")

</div>

We are trying to configure two different neo4j db instance of same URI in reactive spring boot application. We have configured two different configuration as well. One of the configuration mentioned below but it's not de…

---

## [Impossible to export from embedded database](https://community.neo4j.com/t/impossible-to-export-from-embedded-database/45047)

<div class="topic-metadata">

**Author:** [@ontologiae](https://community.neo4j.com/u/ontologiae)\
**Replies:** 6\
**Last updated:** [September 29, 2021, 3:59pm UTC](https://community.neo4j.com/t/impossible-to-export-from-embedded-database/45047 "2021-09-29T15:59:36Z")

</div>

neo4j 3.5 (The version 4 never worked in embedded context, it does not creates links between nodes... Tried everything....) Hi, I have a huge database with lots of differents type of nodes and relationships. I'm tryi…

---

## [Getting node type from Java Query](https://community.neo4j.com/t/getting-node-type-from-java-query/40219)

<div class="topic-metadata">

**Author:** [@loucas.andrew97](https://community.neo4j.com/u/loucas.andrew97)\
**Replies:** 2\
**Last updated:** [June 24, 2021, 6:52am UTC](https://community.neo4j.com/t/getting-node-type-from-java-query/40219 "2021-06-24T06:52:15Z")

</div>

Hey everyone, i using a java driver to query a graph database in java and get their values. I am working on transforming the data structure of the result to suitable data structure to apply my own algorithms. So i am ap…

---

## [Project Java results to neo4j browser?](https://community.neo4j.com/t/project-java-results-to-neo4j-browser/40155)

<div class="topic-metadata">

**Author:** [@loucas.andrew97](https://community.neo4j.com/u/loucas.andrew97)\
**Replies:** 1\
**Last updated:** [June 23, 2021, 11:43pm UTC](https://community.neo4j.com/t/project-java-results-to-neo4j-browser/40155 "2021-06-23T23:43:36Z")

</div>

Hello everyone, So my idea is to use java to query the database and obtain results, because i want to modify and create graph algorithms. I have managed to connect and apply simple queries on the database through java …

---

## [Bidirectional relation with self referencing nodes](https://community.neo4j.com/t/bidirectional-relation-with-self-referencing-nodes/32899)

<div class="topic-metadata">

**Author:** [@vimal.sakhiya23](https://community.neo4j.com/u/vimal.sakhiya23)\
**Replies:** 3\
**Last updated:** [January 29, 2021, 5:05pm UTC](https://community.neo4j.com/t/bidirectional-relation-with-self-referencing-nodes/32899 "2021-01-29T17:05:23Z")

</div>

The scenario is as follows User A-\[follows\]-\>B and B-\[follows\]-A with such bidirectional relation between same Node entities, load cypher for A takes indefinite to load. \<MATCH (n:User) WHERE n.id = $id WITH n, id(n) …

---

## [OGM - Load all for depth 5, exclude one relation from loading](https://community.neo4j.com/t/ogm-load-all-for-depth-5-exclude-one-relation-from-loading/32108)

<div class="topic-metadata">

**Author:** [@dijkvanjaap](https://community.neo4j.com/u/dijkvanjaap)\
**Replies:** 1\
**Last updated:** [January 15, 2021, 2:00pm UTC](https://community.neo4j.com/t/ogm-load-all-for-depth-5-exclude-one-relation-from-loading/32108 "2021-01-15T14:00:33Z")

</div>

The following like loads "too much" data: object = session.load(objectclass.class, simID.longValue(), 5); Its working as it should but i would like to exclude one specific relation from the load. How can i exclude for…

---

## [RxResult with Read & Write Transaction](https://community.neo4j.com/t/rxresult-with-read-write-transaction/30465)

<div class="topic-metadata">

**Author:** [@Solido](https://community.neo4j.com/u/Solido)\
**Replies:** 1\
**Last updated:** [December 20, 2020, 11:45pm UTC](https://community.neo4j.com/t/rxresult-with-read-write-transaction/30465 "2020-12-20T23:45:19Z")

</div>

Hello ! I am currently testing neo4j inside a async framework Reading of node is done with this code fun \<T\> read(query: String, action: Action\<T\>): Multi\<T\> = Multi.createFrom().resource(driver::rxSession) { …

---

## [Neo4j from JavaScript](https://community.neo4j.com/t/neo4j-from-javascript/20564)

<div class="topic-metadata">

**Author:** [@Shurupa](https://community.neo4j.com/u/Shurupa)\
**Replies:** 3\
**Last updated:** [December 4, 2020, 5:35pm UTC](https://community.neo4j.com/t/neo4j-from-javascript/20564 "2020-12-04T17:35:35Z")

</div>

Hi All, I am a student trying to build a web application using neo4j as the back end. I would like to connect my front end, in which I am using HTML and javaScript to connect to neo4j, but I'm having trouble understandi…

---

## [Can I use cypher in a user defined procedure?](https://community.neo4j.com/t/can-i-use-cypher-in-a-user-defined-procedure/28353)

<div class="topic-metadata">

**Author:** [@peey](https://community.neo4j.com/u/peey)\
**Replies:** 11\
**Last updated:** [November 25, 2020, 5:10pm UTC](https://community.neo4j.com/t/can-i-use-cypher-in-a-user-defined-procedure/28353 "2020-11-25T17:10:38Z")

</div>

The page on user defined procedures and the example therein show how you can use the core API to define user-defined functions. Is it possible for me to invoke a cypher query within a user-define procedure, or am I limi…

---

## [Interfacing with Neo4J desktop Movies DB - Java example source code](https://community.neo4j.com/t/interfacing-with-neo4j-desktop-movies-db-java-example-source-code/26671)

<div class="topic-metadata">

**Author:** [@giladkeinan](https://community.neo4j.com/u/giladkeinan)\
**Replies:** 4\
**Last updated:** [November 22, 2020, 2:22pm UTC](https://community.neo4j.com/t/interfacing-with-neo4j-desktop-movies-db-java-example-source-code/26671 "2020-11-22T14:22:51Z")

</div>

I'm a new Neo4J (community version) Java developer using IntelliJ. Where I can find a simple, straightforward Java example source code (+maven code) for interfacing with Neo4J desktop Movies DB (or even creating new on…

---

## [Java apoc.periodic.iterate( {params:{...}}) insert large scale of data](https://community.neo4j.com/t/java-apoc-periodic-iterate-params-insert-large-scale-of-data/29082)

<div class="topic-metadata">

**Author:** [@boris.bakman](https://community.neo4j.com/u/boris.bakman)\
**Replies:** 0\
**Last updated:** [November 16, 2020, 7:57am UTC](https://community.neo4j.com/t/java-apoc-periodic-iterate-params-insert-large-scale-of-data/29082 "2020-11-16T07:57:31Z")

</div>

Hi, I'm trying to execute the following Java code with apoc without success. Can somebody assist me? public interface IRelationRepository { @Query("call apoc.periodic.iterate(" + "\\"UNWIND $items as …

---

## [Consuming Third Party Rest API in Java code and mapping it to Neo4j database](https://community.neo4j.com/t/consuming-third-party-rest-api-in-java-code-and-mapping-it-to-neo4j-database/25033)

<div class="topic-metadata">

**Author:** [@shubham.shukla](https://community.neo4j.com/u/shubham.shukla)\
**Replies:** 1\
**Last updated:** [September 10, 2020, 7:47pm UTC](https://community.neo4j.com/t/consuming-third-party-rest-api-in-java-code-and-mapping-it-to-neo4j-database/25033 "2020-09-10T19:47:07Z")

</div>

I am working on a task which requires accessing a third party api. Data received from the API will be in JSON Format. My issue is : How do i use the apoc library function in my java code to load this json third part…

---

## [Best Linux File System](https://community.neo4j.com/t/best-linux-file-system/23206)

<div class="topic-metadata">

**Author:** [@timkofu](https://community.neo4j.com/u/timkofu)\
**Replies:** 1\
**Last updated:** [August 16, 2020, 12:56pm UTC](https://community.neo4j.com/t/best-linux-file-system/23206 "2020-08-16T12:56:51Z")

</div>

Good day, Couple of questions: Which File-System is best for Neo4j on Linux (kernel 5.4.x)? Does Neo4j play well with Azul Zing? Thanks you.

---

## [How to automatically import MYSQL database into Neo4j using java](https://community.neo4j.com/t/how-to-automatically-import-mysql-database-into-neo4j-using-java/14317)

<div class="topic-metadata">

**Author:** [@sagarsalvi5](https://community.neo4j.com/u/sagarsalvi5)\
**Replies:** 5\
**Last updated:** [July 14, 2020, 6:22pm UTC](https://community.neo4j.com/t/how-to-automatically-import-mysql-database-into-neo4j-using-java/14317 "2020-07-14T18:22:23Z")

</div>

Hello folks, As I'm importing the SQL DB into neo4j using the Neo4j ETL tool, where data tables map to nodes, labels and, relationships within tables. Please refer to the below attached screenshot. I want to load this…

---

## [URGENT! Java vs .NET Driver performance](https://community.neo4j.com/t/urgent-java-vs-net-driver-performance/20024)

<div class="topic-metadata">

**Author:** [@muzos07](https://community.neo4j.com/u/muzos07)\
**Replies:** 2\
**Last updated:** [June 15, 2020, 9:09am UTC](https://community.neo4j.com/t/urgent-java-vs-net-driver-performance/20024 "2020-06-15T09:09:12Z")

</div>

Hello! I'm happy to inform you that after a year of testing a lot of graph databases, implementing their drivers into my project, troubleshooting and more I have decided to use Neo4j as main database for my Bachelors de…

---

## [Cyclic issues with SpringBoot for Neo4j Nodes and Relationship persistence](https://community.neo4j.com/t/cyclic-issues-with-springboot-for-neo4j-nodes-and-relationship-persistence/19118)

<div class="topic-metadata">

**Author:** [@rajanpupa](https://community.neo4j.com/u/rajanpupa)\
**Replies:** 1\
**Last updated:** [May 27, 2020, 6:20am UTC](https://community.neo4j.com/t/cyclic-issues-with-springboot-for-neo4j-nodes-and-relationship-persistence/19118 "2020-05-27T06:20:43Z")

</div>

Hey there, I am trying to learn Neo4j with SpringBoot and I am facing issues creating relationships. First I thought if I update a Persistent object, it will automatically trigger a state change in the graph. It's not …

---

## [Acquisition of shared read locks](https://community.neo4j.com/t/acquisition-of-shared-read-locks/18398)

<div class="topic-metadata">

**Author:** [@cdpm](https://community.neo4j.com/u/cdpm)\
**Replies:** 1\
**Last updated:** [May 10, 2020, 8:26pm UTC](https://community.neo4j.com/t/acquisition-of-shared-read-locks/18398 "2020-05-10T20:26:42Z")

</div>

Neo4j allows acquisition of shared read locks on nodes and edges by using org.neo4j.graphdb.Transaction::acquireReadLock. Since this functionality is not available via Cypher, according to Transaction management - Java R…

---

## [Does Java SE is enough for building a simple API with neo4j?](https://community.neo4j.com/t/does-java-se-is-enough-for-building-a-simple-api-with-neo4j/18293)

<div class="topic-metadata">

**Author:** [@it1453](https://community.neo4j.com/u/it1453)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 4:24pm UTC](https://community.neo4j.com/t/does-java-se-is-enough-for-building-a-simple-api-with-neo4j/18293 "2020-05-07T16:24:56Z")

</div>

Hello I am doing my thesis for the university. I know Java SE(Standard Edition) and Python. I consider to use Java SE but i am not quit sure if it can complete the task (API). My DataBase will be movies I want the API…

---

## [Transactions and locks](https://community.neo4j.com/t/transactions-and-locks/15502)

<div class="topic-metadata">

**Author:** [@eric13013](https://community.neo4j.com/u/eric13013)\
**Replies:** 4\
**Last updated:** [March 12, 2020, 9:40am UTC](https://community.neo4j.com/t/transactions-and-locks/15502 "2020-03-12T09:40:26Z")

</div>

Question 1 about Transaction read locks : when doing tx.acquireReadLock on a node, does all relationships linked to this node are also locked, or do we explicitly need to acquire a lock also for them ? Is it possible for…

---

## [Many Many Labels](https://community.neo4j.com/t/many-many-labels/14369)

<div class="topic-metadata">

**Author:** [@shahar](https://community.neo4j.com/u/shahar)\
**Replies:** 2\
**Last updated:** [February 6, 2020, 9:54am UTC](https://community.neo4j.com/t/many-many-labels/14369 "2020-02-06T09:54:12Z")

</div>

Hey Everyone, I'm using neo4j for a big corporate data, that have over 500 parameters on each employee. I want to find parameters that are shared among employees (simple ones as gender, the city they live, etc... and h…

---

## [How to log to neo4j.log in an Unmanaged Extension](https://community.neo4j.com/t/how-to-log-to-neo4j-log-in-an-unmanaged-extension/296)

<div class="topic-metadata">

**Author:** [@david\_gordon1](https://community.neo4j.com/u/david_gordon1)\
**Replies:** 4\
**Last updated:** [November 18, 2019, 8:54pm UTC](https://community.neo4j.com/t/how-to-log-to-neo4j-log-in-an-unmanaged-extension/296 "2019-11-18T20:54:29Z")

</div>

As part of the major changes in 3.0, the way to log to the user log, now neo4j.log (in server mode), has changed. To log within an Unmanaged Extension is quite straightforward: Include this package: import org.neo4j.log…

---

## [How to parse Result object](https://community.neo4j.com/t/how-to-parse-result-object/10390)

<div class="topic-metadata">

**Author:** [@usuallycwdillon](https://community.neo4j.com/u/usuallycwdillon)\
**Replies:** 2\
**Last updated:** [September 25, 2019, 1:54am UTC](https://community.neo4j.com/t/how-to-parse-result-object/10390 "2019-09-25T01:54:43Z")

</div>

I'm writing some custom complicated procedures that make some queries that return a single result, but I haven't figured out how to parse my query result from the Result object returned by the query. For example, I have…

---

## [How can I create constraints using Java API?](https://community.neo4j.com/t/how-can-i-create-constraints-using-java-api/9846)

<div class="topic-metadata">

**Author:** [@klaus.gross](https://community.neo4j.com/u/klaus.gross)\
**Replies:** 1\
**Last updated:** [September 4, 2019, 11:19am UTC](https://community.neo4j.com/t/how-can-i-create-constraints-using-java-api/9846 "2019-09-04T11:19:05Z")

</div>

How do I create the following constraints with the Java APIs? CREATE CONSTRAINT ON (entity:Entity) ASSERT(entity.prefix, entity.name) IS NODE KEY; CREATE CONSTRAINT ON (entity:Entity) ASSERT exists(entity.name); I am …

---

## [GraphQL Libraries](https://community.neo4j.com/t/graphql-libraries/8868)

<div class="topic-metadata">

**Author:** [@jcampedelli](https://community.neo4j.com/u/jcampedelli)\
**Replies:** 0\
**Last updated:** [July 17, 2019, 3:26pm UTC](https://community.neo4j.com/t/graphql-libraries/8868 "2019-07-17T15:26:01Z")

</div>

Is there any limitations of neo4j-graphql-java vs neo4j-graphql.js. When is neo4j-graphql-java planned to come out of beta? According to the docs the following features are not implemented neo4j-graphql-java but I am as…

---

## [Traversal JAVA framework open source code?](https://community.neo4j.com/t/traversal-java-framework-open-source-code/8775)

<div class="topic-metadata">

**Author:** [@myuseringithub](https://community.neo4j.com/u/myuseringithub)\
**Replies:** 1\
**Last updated:** [July 15, 2019, 3:02pm UTC](https://community.neo4j.com/t/traversal-java-framework-open-source-code/8775 "2019-07-15T15:02:36Z")

</div>

Where it the open source code for the Neo4j traversal framework Java API ? I've read the documentation in Using Neo4j embedded in Java applications - Java Reference and would like to review the code behind it. I couldn'…

---

## [Iterate over Nodes matching a property only](https://community.neo4j.com/t/iterate-over-nodes-matching-a-property-only/7847)

<div class="topic-metadata">

**Author:** [@ad.van.ommen](https://community.neo4j.com/u/ad.van.ommen)\
**Replies:** 0\
**Last updated:** [June 4, 2019, 2:28pm UTC](https://community.neo4j.com/t/iterate-over-nodes-matching-a-property-only/7847 "2019-06-04T14:28:23Z")

</div>

versions: Java 8, neo4j 3.5.2 I seek advice on finding specific nodes by property only Writing a custom procedure, I observed that the GraphDatabaseService interface has methods to find nodes with a given label and opt…

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