Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Neo4j Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-neo4j-knowledge-patch)
---
name: neo4j-knowledge-patch
description: Neo4j
version: "2026.10.2"
license: MIT
metadata:
author: Nevaberry
---
# Neo4j Knowledge Patch
Load this skill when upgrading Neo4j, changing Cypher queries or administration
scripts, or configuring imports, vector search, access control, and monitoring.
Use the topic references for complete migration details and examples.
## Reference index
| Reference | Topics |
| --- | --- |
| [Upgrades, deprecations, and removals](references/upgrades-deprecations-and-removals.md) | Upgrade prerequisites, affected releases, store formats, procedures, Java extensions |
| [Configuration, platforms, APIs, and observability](references/configuration-platforms-and-observability.md) | Settings, platform support, HTTP APIs, logs, metrics, Shell, Browser |
| [Administration, import, backup, and clusters](references/administration-import-backup-and-clusters.md) | Discovery, placement, seeding, import, backup, restore, Fleet Manager, CDC |
| [Cypher language and query runtime](references/cypher-language-and-query-runtime.md) | Language selection, composition, paths, aggregation, schemas, concurrency, runtime fixes |
| [Security, access control, and TLS](references/security-access-and-tls.md) | Privileges, ABAC, PBAC, OIDC, TLS, security logs, dependency security updates |
| [Vector search and GenAI](references/vector-search-and-genai.md) | Vector API migrations, HFQ, quantization, search filters, token functions, file embeddings |
## Upgrade blockers and data compatibility
- For production deployments on 2025.06, upgrade to 2025.06.1 or later to avoid
sporadic checkpoint deadlocks.
- Use 2026.07.1 in place of 2026.07.0. The latter introduced a block-format UTF-8
encoding bug that can cause `trim()` queries to fail and leave stored string
data unreadable.
- Complete discovery v1-to-v2 migration on 5.26 LTS before upgrading to 2025.01.
That upgrade removes discovery v1 and port `5000`; use port `6000` for internal
cluster traffic.
- The next LTS is the final release that can read, write, or migrate `high_limit`
stores. Migrate them offline to `block` before upgrading past that LTS;
`high_limit` databases fail to start on later releases.
- The `standard` store format is deprecated as of 5.23.
## Breaking Cypher changes and procedure migrations
In Cypher 25, remove `indexProvider` from index and constraint creation commands.
When copying properties from a node or relationship, convert the source to a map:
`SET target = properties(source)` replaces the target's properties.
In Cypher 25, `db.schema.nodeTypeProperties()` and `db.schema.relTypeProperties()`
return Cypher type names in `propertyTypes`; update consumers expecting Java type names.
`SHOW TRANSACTIONS` returns `startTime` and `currentQueryStartTime` as
`ZONED DATETIME`, and unavailable values in the fields listed in the administration
reference are `null`. Read cluster state from result notifications for commands
with `WAIT`.
| Cypher 25 migration | Use |
| --- | --- |
| Deprecated `db.index.vector.queryNodes()` and `db.index.vector.queryRelationships()` | `SEARCH` |
| Removed `db.index.vector.createNodeIndex()` | `CREATE VECTOR INDEX` for node vector indexes |
| Removed `db.create.setVectorProperty()` | `db.create.setNodeVectorProperty()` for a node vector property |
| Removed `dbms.cluster.uncordonServer()` | `ENABLE SERVER 'server-1'` with the server's name |
| Removed `dbms.quarantineDatabase()` | `dbms.unquarantineDatabase()` to clear quarantine |
| Removed `dbms.cluster.readReplicaToggle()` | `dbms.cluster.secondaryReplicationDisable()` |
Cypher 25 also removes `dbms.upgrade()` and `dbms.upgradeStatus()`.
Both Cypher versions reject colliding database, alias, and constituent names and
disallow local constituents as user home databases. Use the associated composite
database to access a constituent targeting a database on the same DBMS.
## Configuration and operational deprecations
Update existing configuration before starting 2025.01. The references contain the
complete removed-setting and Java API lists. Key setting migrations are:
| Old setting | Replacement |
| --- | --- |
| `server.groups` | `initial.server.tags` |
| `db.cluster.raft.leader_transfer.priority_group` | `db.cluster.raft.leader_transfer.priority_tag` |
| `db.logs.query.annotation_data_as_json_enabled` | `db.logs.query.annotation_data_format` |
| `dbms.cluster.catchup.client_inactivity_timeout` | `dbms.cluster.network.client_inactivity_timeout` |
| `server.max_databases` | `dbms.max_databases` |
Use `server.memory.query_cache.per_db_cache_num_entries` in place of the deprecated
`server.db.query_cache_size` to set cached query entries per database.
Relative `server.logs.config` and `server.logs.user.config` paths resolve from
`server.directories.configuration`; remove `conf/` from custom values that pointed
there from the installation root.
On 5.26, `existingDataSeedInstance` and `seedCredentials` are deprecated, with
`existingDataSeedServer` and `CloudSeedProvider` as their respective migrations.
Cypher 25 removes both legacy options: use the cloud provider's credential
mechanism for credentials. `existingData` is optional, deprecated, and ignored.
`seedSourceDatabase` filters backup artifacts by source database.
Use `neo4j-admin backup aggregate` in place of the deprecated Enterprise command
`neo4j-admin database aggregate-backup`. Use `--max-off-heap-memory` instead of
the deprecated `--page-cache` option with `neo4j-admin database migrate`.
## Security, errors, and monitoring migrations
- The OIDC Implicit option for `dbms.security.oidc.<provider>.auth_flow` is
deprecated and will be removed. Use the default authorization code flow with PKCE.
- `dbms.ssl.policy.*.verify_hostname` defaults to `true`. Certificates must match
connection hostnames when verification is enabled.
- Since 2025.04, branch on GQLSTATUS error codes; parsing human-readable error
messages is deprecated.
- Read `errorInfo` in JSON query logs; `failureReason` is deprecated as of 2025.05.
- For approximate graph size, use `<prefix>.neo4j.count.node` and
`<prefix>.neo4j.count.relationship` instead of deprecated `<prefix>.ids_in_use.*`
metrics for nodes, relationships, properties, and relationship types.
- The default metrics filter drops `cluster.internal.*` in 2025.06. Include that
pattern explicitly if collecting those metrics; individual discovery metric
names are listed in the observability reference.
The HTTP Query API replaces the deprecated transactional HTTP API and is enabled
by default from 5.26. On earlier versions that support it, add `QUERY_API_ENDPOINTS`
to `server.http_enabled_modules`. From 2026.04.0, transaction IDs have six characters
instead of four; update clients that validate or store a fixed width.
## Cypher language selection and query composition
Cypher 5 is the default for existing and new databases in 2025.06. Set a database's
language with `CREATE DATABASE` or `ALTER DATABASE`, or select a query's language
with a prefix such as `CYPHER 25 RETURN 1`.
Starting in 2026.02, the distributed `neo4j.conf` explicitly sets
`db.query.default_language=CYPHER_25`; newly created databases default to Cypher 25
in deployments using that configuration.
In Cypher 25, `NEXT` passes returned rows to the following query:
```cypher
UNWIND [1, 2] AS n RETURN n NEXT RETURN n * 2 AS doubled
```
Cypher 25 makes the intervening `WITH` optional when a read follows a write,
accepts `WITH ALL` and `RETURN ALL` to explicitly preserve duplicates, and allows
union branches to return the same column names in different orders.
It also accepts braces around top-level queries and composite-query branches.
`FOR` is the GQL equivalent of `UNWIND` in Cypher 25:
```cypher
CYPHER 25 FOR item IN [1, 2, 3] RETURN item
```
Cypher 25 supports combining the `SHOW` commands listed in the language reference
and `TERMINATE TRANSACTIONS` with each other and other Cypher clauses.
## Aggregation, paths, strings, and concurrent writes
- In Cypher 25, imported variables are constants in aggregations inside `COLLECT`,
`COUNT`, and `EXISTS` subquery expressions. An imported variable alone no longer
creates a grouping key; an otherwise ungrouped aggregation can return a row even
when the subquery matches zero rows.
- In 2026.07.0, Cypher 25 adds `GROUP BY` to `WITH` or `RETURN` for explicit
aggregation keys, and `cardinality()` for map keys, list elements, or nodes plus
relationships in a path.
- Cypher 25 accepts a parameter for the `SHORTEST` and `ANY` path count. With
`ACYCLIC`, each selected path visits any given node at most once.
- Cypher 25 adds `string.indexOf`, `string.join`, and `string.regexReplace`;
the corresponding `apoc.text.*` functions are deprecated.
- An optional fourth argument to Cypher 25's `replace()` caps replacements:
`RETURN replace('aaa', 'a', 'b', 2)` returns `'bba'`.
- Use `DISJOINT BY` with `CALL { … } IN CONCURRENT TRANSACTIONS` in Cypher 25 to
identify writes that may contend for the same locks. The scheduler uses this
information to keep conflicting batches from running concurrently.
From 2026.07.0 in Cypher 25, using different expression text to reference a computed
`WITH` or `RETURN` projection in a subclause such as `ORDER BY` is deprecated:
repeat the projected expression exactly or use its alias. A `WITH` or `RETURN`
subclause reference that could mean an incoming variable or a projection alias
is also deprecated; use a distinct alias for the new value.
## Graph types, import, and backup
Cypher 25 graph types are supported for defining, enforcing, and validating
database-level schemas in production from 2026.06.0. `SHOW CURRENT GRAPH TYPE AS GRAPH`
returns lists of virtual nodes and relationships; the plain command returns a string.
Full import accepts the preview `ALTER CURRENT GRAPH TYPE SET {…}` statement in a
schema file. Incremental import accepts `ALTER CURRENT GRAPH TYPE` with `ADD`,
`DROP`, or `ALTER` through `--schema`.
For `neo4j-admin database import`, keep `--vector-delimiter` distinct from both
`--delimiter` and `--quote`. Native Parquet list columns can supply vector values.
Starting in 2025.12, full and incremental import default `--bad-tolerance` to `-1`
(unlimited); use `--bad-tolerance=1000` to keep the previous limit.
Use `--target-format=backup --compress` with `neo4j-admin database copy` or
`neo4j-admin database import` to write compressed backup artifacts.
## Vector search and GenAI
HFQ expands the initial search over quantized vectors, then reranks candidates
using full-precision vectors. It is a preview in 2026.06.0 and generally available
in 2026.07.0. Rebuild an existing index to use HFQ.
In 2026.07.0, new vector indexes default to scalar quantization and
`vector.default_search_expansion_factor` of `1.5`; rebuilding an older index with
the new defaults applies both settings.
Set `vector.quantization.enabled` to `false` on its own for an unquantized index.
Cypher 25 accepts `IN` in a vector `SEARCH` filter; the vector reference includes
an example with `moviePlots` configured to filter on `genre`.
`ai.text.countToken` estimates a string's token count. `ai.text.chunkByTokenLimit`
splits a string into strings that each fit a specified token limit.
`ai.file.embedBatch` reads a local or remote file, optionally chunks its text,
and returns each chunk's index, text, and embedding vector.