# Procedures & APOC

**URL:** https://community.neo4j.com/c/neo4j-graph-platform/procedures-apoc/77.md

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

---

## [About the Procedures & APOC category](https://community.neo4j.com/t/about-the-procedures-apoc-category/88)

<div class="topic-metadata">

**Author:** [@michael.hunger](https://community.neo4j.com/u/michael.hunger)\
**Replies:** 0\
**Last updated:** [June 13, 2018, 6:22pm UTC](https://community.neo4j.com/t/about-the-procedures-apoc-category/88 "2018-06-13T18:22:42Z")

</div>

You can use user-defined procedures and functions to extend Neo4j. If you run into a bug please file a GitHub issue APOC Documentation Procedure Documentation APOC Video Series presentation from graphtour: slides | vi…

---

## [Apoc.export.cypher.query fails with ClassNotFoundException (Neo4j 5.26 Docker)](https://community.neo4j.com/t/apoc-export-cypher-query-fails-with-classnotfoundexception-neo4j-5-26-docker/76947)

<div class="topic-metadata">

**Author:** [@marc.roth](https://community.neo4j.com/u/marc.roth)\
**Replies:** 3\
**Last updated:** [March 30, 2026, 3:17pm UTC](https://community.neo4j.com/t/apoc-export-cypher-query-fails-with-classnotfoundexception-neo4j-5-26-docker/76947 "2026-03-30T15:17:37Z")

</div>

Hi all, I’m running into an issue with apoc.export.cypher.query in a Docker setup. Problem This query: CALL apoc.export.cypher.query( 'MATCH (node) RETURN node LIMIT 1', null, { separateFiles: true, writ…

---

## [Why are apoc.coll.max() and apoc.coll.min() deprecated in Cypher 25?](https://community.neo4j.com/t/why-are-apoc-coll-max-and-apoc-coll-min-deprecated-in-cypher-25/75434)

<div class="topic-metadata">

**Author:** [@Reiner](https://community.neo4j.com/u/Reiner)\
**Replies:** 3\
**Last updated:** [January 13, 2026, 1:11pm UTC](https://community.neo4j.com/t/why-are-apoc-coll-max-and-apoc-coll-min-deprecated-in-cypher-25/75434 "2026-01-13T13:11:41Z")

</div>

Why are apoc.coll.max() and apoc.coll.min() deprecated in Cypher 25? In the documentation, it is mentioned “This function is deprecated. Use Cypher’s max()or min() function instead.” Sounds easy, but using these leads to…

---

## [APOCs not loading, missing or failing on 5.26.8](https://community.neo4j.com/t/apocs-not-loading-missing-or-failing-on-5-26-8/75757)

<div class="topic-metadata">

**Author:** [@benjamin.patrick1](https://community.neo4j.com/u/benjamin.patrick1)\
**Replies:** 3\
**Last updated:** [October 24, 2025, 8:19pm UTC](https://community.neo4j.com/t/apocs-not-loading-missing-or-failing-on-5-26-8/75757 "2025-10-24T20:19:41Z")

</div>

I’m having issues getting a clean start and validating/using apocs. I need to run apoc extended procedures. I have been running apoc-5.26.1-extended.jar but found I was missing some basic apoc’s hit or miss depending on…

---

## [How can I improvise insertion performance after adding :TTL label in my existing label?](https://community.neo4j.com/t/how-can-i-improvise-insertion-performance-after-adding-ttl-label-in-my-existing-label/75473)

<div class="topic-metadata">

**Author:** [@shivangijaiswal19](https://community.neo4j.com/u/shivangijaiswal19)\
**Replies:** 3\
**Last updated:** [September 22, 2025, 10:04am UTC](https://community.neo4j.com/t/how-can-i-improvise-insertion-performance-after-adding-ttl-label-in-my-existing-label/75473 "2025-09-22T10:04:46Z")

</div>

I am using PySpark to insert data into Neo4j on a daily basis. I insert ~5Millions rows from a CSV. It was all working fine and the Job was getting finished in 30 minutes. Ever since I add TTL in the existing labels, I …

---

## [apoc.refactor.cloneSubgraph doesn't preserve edge properties](https://community.neo4j.com/t/apoc-refactor-clonesubgraph-doesnt-preserve-edge-properties/72089)

<div class="topic-metadata">

**Author:** [@clark.adam](https://community.neo4j.com/u/clark.adam)\
**Replies:** 4\
**Last updated:** [September 16, 2025, 7:45am UTC](https://community.neo4j.com/t/apoc-refactor-clonesubgraph-doesnt-preserve-edge-properties/72089 "2025-09-16T07:45:01Z")

</div>

I have found that the apoc.refactor.cloneSubgraph procedure does not preserve edge properties. Below is a simple recreate: CREATE (:A)-\[:R{id:"ID1"}\]-\>(:B) MATCH (n)-\[r:R\]-\>(oldB:B) WITH oldB, COLLECT(DISTINCT n) AS …

---

## [Installation of APOC plugin](https://community.neo4j.com/t/installation-of-apoc-plugin/75327)

<div class="topic-metadata">

**Author:** [@gowsikasree.sivaraj](https://community.neo4j.com/u/gowsikasree.sivaraj)\
**Replies:** 4\
**Last updated:** [September 5, 2025, 11:20am UTC](https://community.neo4j.com/t/installation-of-apoc-plugin/75327 "2025-09-05T11:20:24Z")

</div>

I am working on a Neo4j deployment using Helm charts (version 2025.7.1) on an AWS EKS cluster and I am facing difficulties in installing the APOC plugin. So far, my approach has been to manually place the APOC JAR file …

---

## [Switch apoc.convert.toTree to apoc.paths.toJsonTree](https://community.neo4j.com/t/switch-apoc-convert-totree-to-apoc-paths-tojsontree/74839)

<div class="topic-metadata">

**Author:** [@adelplace](https://community.neo4j.com/u/adelplace)\
**Replies:** 3\
**Last updated:** [July 25, 2025, 1:41am UTC](https://community.neo4j.com/t/switch-apoc-convert-totree-to-apoc-paths-tojsontree/74839 "2025-07-25T01:41:11Z")

</div>

Hi, I'm trying to switch from the deprecated method 'apoc.convert.toTree' to the new one 'apoc.paths.toJsonTree' but I don't really understand the result Here is my request : MATCH path=(:ADEO\_ConceptScheme {code:"htt…

---

## [Plugins Not Showing](https://community.neo4j.com/t/plugins-not-showing/74694)

<div class="topic-metadata">

**Author:** [@juliettefournier-eco](https://community.neo4j.com/u/juliettefournier-eco)\
**Replies:** 1\
**Last updated:** [July 15, 2025, 8:31am UTC](https://community.neo4j.com/t/plugins-not-showing/74694 "2025-07-15T08:31:57Z")

</div>

Hello, I'm trying to install APOC (with Neo4j Desktop) but when I click on "Plugins" nothing is showing. Can you help me with that? neo4j desktop version: 1.6.2

---

## [Failed to load apoc.trigger.install in neo4j 5.1](https://community.neo4j.com/t/failed-to-load-apoc-trigger-install-in-neo4j-5-1/73077)

<div class="topic-metadata">

**Author:** [@gedala.kumar.ext](https://community.neo4j.com/u/gedala.kumar.ext)\
**Replies:** 7\
**Last updated:** [July 15, 2025, 6:10am UTC](https://community.neo4j.com/t/failed-to-load-apoc-trigger-install-in-neo4j-5-1/73077 "2025-07-15T06:10:45Z")

</div>

Hi Team, When I am trying to install neo4j 5.1 and apoc plugin 5.1.0, few apoc procedures not been loaded. Majorly i want the procedure apoc.trigger.install which was not loaded. I have seen below warnings and errors in…

---

## [Does standard-folding analyzer in Neo4j perform stemming like the english analyzer?](https://community.neo4j.com/t/does-standard-folding-analyzer-in-neo4j-perform-stemming-like-the-english-analyzer/74291)

<div class="topic-metadata">

**Author:** [@k.giantsios](https://community.neo4j.com/u/k.giantsios)\
**Replies:** 2\
**Last updated:** [June 24, 2025, 1:02pm UTC](https://community.neo4j.com/t/does-standard-folding-analyzer-in-neo4j-perform-stemming-like-the-english-analyzer/74291 "2025-06-24T13:02:40Z")

</div>

I'm using Neo4j's full-text indexes and trying to decide between analyzers for indexing full names that may or may not include diacritics. I came across the standard-folding analyzer, and the documentation says: "An an…

---

## [APOC plugin for Neo4j cannot be installed](https://community.neo4j.com/t/apoc-plugin-for-neo4j-cannot-be-installed/65489)

<div class="topic-metadata">

**Author:** [@mario.recalde](https://community.neo4j.com/u/mario.recalde)\
**Replies:** 5\
**Last updated:** [June 26, 2024, 1:22pm UTC](https://community.neo4j.com/t/apoc-plugin-for-neo4j-cannot-be-installed/65489 "2024-06-26T13:22:31Z")

</div>

Hello everyone, I hope someone can help me to understand how to resolve this problem trying to access Neo4j from jupyter nootebook using langchain.graphs with Neo4jGraph: from langchain.graphs import Neo4jGraph I am u…

---

## [Is there any possibility in reducing the time for querying?](https://community.neo4j.com/t/is-there-any-possibility-in-reducing-the-time-for-querying/74022)

<div class="topic-metadata">

**Author:** [@plutohunter701](https://community.neo4j.com/u/plutohunter701)\
**Replies:** 1\
**Last updated:** [June 3, 2025, 7:03pm UTC](https://community.neo4j.com/t/is-there-any-possibility-in-reducing-the-time-for-querying/74022 "2025-06-03T19:03:42Z")

</div>

Sharing the PROFILE for the query I have developed for finding routes between port stations using QPP. Please help me to reduce down the time to generate the output. I have tried indexing for the node properties using …

---

## [apoc.convert.Totree availability on Neo4J 5?](https://community.neo4j.com/t/apoc-convert-totree-availability-on-neo4j-5/72448)

<div class="topic-metadata">

**Author:** [@zil.darji](https://community.neo4j.com/u/zil.darji)\
**Replies:** 9\
**Last updated:** [April 24, 2025, 11:43am UTC](https://community.neo4j.com/t/apoc-convert-totree-availability-on-neo4j-5/72448 "2025-04-24T11:43:01Z")

</div>

We were using Neo4j Aura with version 4.4 and now want to migrate our database to version 5. Previously, we used the procedure apoc.convert.toTree, but in the migration readiness report, it is marked as deprecated. Afte…

---

## [How to efficiently compute all-pairs Dijkstra shortest paths for a Louvain community in GDS?](https://community.neo4j.com/t/how-to-efficiently-compute-all-pairs-dijkstra-shortest-paths-for-a-louvain-community-in-gds/73358)

<div class="topic-metadata">

**Author:** [@surbhi.gupta2104](https://community.neo4j.com/u/surbhi.gupta2104)\
**Replies:** 7\
**Last updated:** [April 15, 2025, 7:51pm UTC](https://community.neo4j.com/t/how-to-efficiently-compute-all-pairs-dijkstra-shortest-paths-for-a-louvain-community-in-gds/73358 "2025-04-15T19:51:06Z")

</div>

I'm working on a road network analysis using Neo4j and GDS, and I need help with an efficient way to compute shortest paths between all "Location" (label) nodes that belong to a specific Louvain community. What I did : …

---

## [Issue with apoc.conf](https://community.neo4j.com/t/issue-with-apoc-conf/73450)

<div class="topic-metadata">

**Author:** [@olayememmanuel](https://community.neo4j.com/u/olayememmanuel)\
**Replies:** 3\
**Last updated:** [April 13, 2025, 1:31am UTC](https://community.neo4j.com/t/issue-with-apoc-conf/73450 "2025-04-13T01:31:29Z")

</div>

I downloaded the apoc library, but I receive this error message when I run my cypher codes. I created and added the apoc file to the conf folder because I could not find the file at first. I even added these to the ne…

---

## [Apoc.crypto.encrypt and apoc.crypto.decrypt](https://community.neo4j.com/t/apoc-crypto-encrypt-and-apoc-crypto-decrypt/72913)

<div class="topic-metadata">

**Author:** [@paolodipietro58](https://community.neo4j.com/u/paolodipietro58)\
**Replies:** 8\
**Last updated:** [March 12, 2025, 8:20pm UTC](https://community.neo4j.com/t/apoc-crypto-encrypt-and-apoc-crypto-decrypt/72913 "2025-03-12T20:20:52Z")

</div>

I'm using one of the latest version of Neo4j Enterprise (5.26.1) with the related apoc (5.26.2). In the previous versions (4.x) there were two useful apoc functions WITH 'my-secret-key' AS key, 'Sensitive Data' AS plai…

---

## [apoc.custom.installProcedure not allowed because of the "FOLLOWER" role](https://community.neo4j.com/t/apoc-custom-installprocedure-not-allowed-because-of-the-follower-role/72970)

<div class="topic-metadata">

**Author:** [@fisherman\_2022](https://community.neo4j.com/u/fisherman_2022)\
**Replies:** 6\
**Last updated:** [March 12, 2025, 6:00pm UTC](https://community.neo4j.com/t/apoc-custom-installprocedure-not-allowed-because-of-the-follower-role/72970 "2025-03-12T18:00:55Z")

</div>

Hi all, I'm new to Neo4j DBMS and need help with creating a custom procedure. I'm trying to execute: CALL apoc.custom.installProcedure( 'my\_procedure(param1::STRING) :: (result::STRING)', 'MATCH (n:$param1) RE…

---

## [Set upper bound for node and edge count in a apoc.path.spanningTree query](https://community.neo4j.com/t/set-upper-bound-for-node-and-edge-count-in-a-apoc-path-spanningtree-query/72854)

<div class="topic-metadata">

**Author:** [@hamed.metalgear](https://community.neo4j.com/u/hamed.metalgear)\
**Replies:** 10\
**Last updated:** [March 4, 2025, 1:50pm UTC](https://community.neo4j.com/t/set-upper-bound-for-node-and-edge-count-in-a-apoc-path-spanningtree-query/72854 "2025-03-04T13:50:50Z")

</div>

Consider the following query: MATCH (root:N) CALL apoc.path.spanningTree( root, { maxLevel: 3, limit: 10000 }) YIELD path WITH root, nodes(path) AS pathNodes, relationships(path) AS pathR…

---

## [Optimizing apoc.path.spanningTree and other cypher related isuue](https://community.neo4j.com/t/optimizing-apoc-path-spanningtree-and-other-cypher-related-isuue/72837)

<div class="topic-metadata">

**Author:** [@graph\_user\_057](https://community.neo4j.com/u/graph_user_057)\
**Replies:** 1\
**Last updated:** [February 28, 2025, 11:34am UTC](https://community.neo4j.com/t/optimizing-apoc-path-spanningtree-and-other-cypher-related-isuue/72837 "2025-02-28T11:34:20Z")

</div>

This a cypher query I have written on neo4j's "movies" dataset, even though the dataset just a simple one it serves for the use case, please read the query as stated below: CALL { match (m:Movie{title:$movie\_name}) m…

---

## [Using Node with Highest Degree for Community Detection, Centrality and Longest Path](https://community.neo4j.com/t/using-node-with-highest-degree-for-community-detection-centrality-and-longest-path/72745)

<div class="topic-metadata">

**Author:** [@whoiskieran](https://community.neo4j.com/u/whoiskieran)\
**Replies:** 1\
**Last updated:** [February 21, 2025, 2:20pm UTC](https://community.neo4j.com/t/using-node-with-highest-degree-for-community-detection-centrality-and-longest-path/72745 "2025-02-21T14:20:07Z")

</div>

I assume that using the node with the highest degree would be a good starting point for finding the longest path also this should be useful for community detection and centrality. I have noticed that Neo4j do not store t…

---

## [APOC Excel export configuration](https://community.neo4j.com/t/apoc-excel-export-configuration/72736)

<div class="topic-metadata">

**Author:** [@krid\_mail](https://community.neo4j.com/u/krid_mail)\
**Replies:** 0\
**Last updated:** [February 20, 2025, 7:34pm UTC](https://community.neo4j.com/t/apoc-excel-export-configuration/72736 "2025-02-20T19:34:36Z")

</div>

Hello all, I‘m trying to export neo4j content to an Excel file using APOC.export.xls.query. Within the documentation it says that there is the standard „configuration“ MAP available. Unfortunately I can not find any det…

---

## [Calculating a date as 18 months after a reference date](https://community.neo4j.com/t/calculating-a-date-as-18-months-after-a-reference-date/72716)

<div class="topic-metadata">

**Author:** [@aochoa4230](https://community.neo4j.com/u/aochoa4230)\
**Replies:** 3\
**Last updated:** [February 18, 2025, 9:54pm UTC](https://community.neo4j.com/t/calculating-a-date-as-18-months-after-a-reference-date/72716 "2025-02-18T21:54:56Z")

</div>

I am trying to calculate a date as 18 calendar months after a reference date. This is what I am currently doing as a stopgap but I am hoping that there is a better way to resolve this as ideally I would love to just add…

---

## [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…

---

## [APOC-Extended installation in kubernetes/helm deployment, 5.26.1-enterprise](https://community.neo4j.com/t/apoc-extended-installation-in-kubernetes-helm-deployment-5-26-1-enterprise/72582)

<div class="topic-metadata">

**Author:** [@gaddechaitu2323](https://community.neo4j.com/u/gaddechaitu2323)\
**Replies:** 0\
**Last updated:** [February 10, 2025, 9:25am UTC](https://community.neo4j.com/t/apoc-extended-installation-in-kubernetes-helm-deployment-5-26-1-enterprise/72582 "2025-02-10T09:25:51Z")

</div>

While Deploying i have following error in kubernetes, followed below link i can see apoc extended procedures when query Fetching versions.json for Plugin 'apoc-extended' from https://neo4j-contrib.github.io/neo4j-apo…

---

## [java.net.SocketTimeoutException: Read timed out / When trying to import from an URL](https://community.neo4j.com/t/java-net-sockettimeoutexception-read-timed-out-when-trying-to-import-from-an-url/61004)

<div class="topic-metadata">

**Author:** [@tim.voelcker](https://community.neo4j.com/u/tim.voelcker)\
**Replies:** 1\
**Last updated:** [February 6, 2025, 12:53am UTC](https://community.neo4j.com/t/java-net-sockettimeoutexception-read-timed-out-when-trying-to-import-from-an-url/61004 "2025-02-06T00:53:27Z")

</div>

Hi everyone, I'm trying to import data from an URL that returns a json-object. The issue is (i guess thats the issue) that the download from the URL takes around 1 minute and 20 seconds (when i'm calling it in the brows…

---

## [Best method or recommandations to load big data from Oracle Database](https://community.neo4j.com/t/best-method-or-recommandations-to-load-big-data-from-oracle-database/72525)

<div class="topic-metadata">

**Author:** [@Dak](https://community.neo4j.com/u/Dak)\
**Replies:** 4\
**Last updated:** [February 5, 2025, 5:28pm UTC](https://community.neo4j.com/t/best-method-or-recommandations-to-load-big-data-from-oracle-database/72525 "2025-02-05T17:28:27Z")

</div>

Hello, I have slowness (6 days loading) problems with loading databases from Oracle Database We currently have a big problem for loading data from the oracle database to neo4j enterprise. We totalize 71 million of node…

---

## [Can non-thread-safe procedures use in multiple thread client side?](https://community.neo4j.com/t/can-non-thread-safe-procedures-use-in-multiple-thread-client-side/72521)

<div class="topic-metadata">

**Author:** [@abccbaandy](https://community.neo4j.com/u/abccbaandy)\
**Replies:** 0\
**Last updated:** [February 4, 2025, 5:54am UTC](https://community.neo4j.com/t/can-non-thread-safe-procedures-use-in-multiple-thread-client-side/72521 "2025-02-04T05:54:09Z")

</div>

In the procedures document, sometimes it has a warning about thread-safe. Ex: This procedure is not considered safe to run from multiple threads. It is therefore not supported by the parallel runtime (introduced in Ne…

---

## [How to use LifecycleAdapter for my custom plugin](https://community.neo4j.com/t/how-to-use-lifecycleadapter-for-my-custom-plugin/72261)

<div class="topic-metadata">

**Author:** [@alex6608](https://community.neo4j.com/u/alex6608)\
**Replies:** 3\
**Last updated:** [January 30, 2025, 9:45am UTC](https://community.neo4j.com/t/how-to-use-lifecycleadapter-for-my-custom-plugin/72261 "2025-01-30T09:45:36Z")

</div>

Hi, I am relatively new to Neo4J. This is my first time building a plugin (on java). I am trying to get my plugin to preprocess data in the graph and store it as cache to use later in queries using procedures defined i…

---

## [apoc.cypher.runFile not doing anything](https://community.neo4j.com/t/apoc-cypher-runfile-not-doing-anything/72454)

<div class="topic-metadata">

**Author:** [@ayushgarg70](https://community.neo4j.com/u/ayushgarg70)\
**Replies:** 1\
**Last updated:** [January 27, 2025, 7:49pm UTC](https://community.neo4j.com/t/apoc-cypher-runfile-not-doing-anything/72454 "2025-01-27T19:49:05Z")

</div>

I have a Cypher script at /import/neo4j\_importer\_cypher\_script\_2024-12-19.cypher (all csvs are there too): :param { // Define the file path root and the individual file names required for loading. // https://neo4j.c…

[Next page](https://community.neo4j.com/c/neo4j-graph-platform/procedures-apoc/77.md?page=1)
