neo4j-cypher-skill

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Neo4j Cypher skill

Neo4j Cypher 技能

This skill uses online guides to upgrade old Neo4j queries to newer versions. It handles all official Cypher queries.
该技能借助在线指南将旧版Neo4j查询升级到新版本,支持所有官方Cypher查询的升级处理。

When to use

适用场景

Use this skill when:
  • a user wants to upgrade a database from version 4.x or 5.x to 2025.x or 2026.x
  • a user asks to upgrade Cypher queries to a newer major Neo4j version
满足以下条件时可使用本技能:
  • 用户需要将数据库从4.x或5.x版本升级到2025.x或2026.x版本
  • 用户提出要将Cypher查询升级到Neo4j的新主版本

Instructions

使用说明

  1. At the beginning, ALWAYS ask a user what Neo4j version is going to be used after the upgrade. Note, the Neo4j database's version is not upgraded as part of this skill, we just need that information a) If the user says that most recent, fetch the version from the supported version list along with the most recent driver version b) Otherwise, analyze the supported versions list and choose the most recent driver version for given Neo4j version
  2. Analyze the codebase to see if there are any Neo4j Cypher queries used. If so, include cypher migration guide
Important: when you plan the upgrade, always include replacement of deprecated functions in the plan
  1. 开头务必询问用户升级后要使用的Neo4j版本。注意:本技能不会升级Neo4j数据库本身的版本,我们仅需要该版本信息即可 a) 如果用户表示要使用最新版本,请从支持版本列表中获取对应版本以及最新的驱动版本 b) 否则,请查阅支持版本列表,为指定的Neo4j版本选择最新的驱动版本
  2. 分析代码库,检查是否使用了Neo4j Cypher查询。如果有,请附上cypher迁移指南
重要提示:制定升级计划时,务必将弃用函数的替换操作纳入计划中