{
  "id": "redis/redisgraph-module-error",
  "signature": "ERR RedisGraph: Graph 'mygraph' does not exist. Use GRAPH.CREATE first.",
  "signature_zh": "RedisGraph：图 'mygraph' 不存在。请先使用 GRAPH.CREATE。",
  "regex": "ERR RedisGraph: Graph '.*' does not exist",
  "domain": "redis",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "Attempting to run GRAPH.QUERY on a non-existent graph key without prior GRAPH.CREATE call.",
  "root_cause_type": "generic",
  "root_cause_zh": "尝试对不存在的图键执行 GRAPH.QUERY，而未先调用 GRAPH.CREATE。",
  "versions": [
    {
      "version": "7.2.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "7.4.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "8.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Using GRAPH.QUERY with a non-existent graph name will auto-create it in some versions, but not in strict mode; this behavior is version-dependent and unreliable.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Renaming the graph key with RENAME will fail if the key doesn't exist; it doesn't solve the missing graph issue.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Create the graph first: GRAPH.CREATE mygraph. Then retry GRAPH.QUERY mygraph 'MATCH (n) RETURN n'.",
      "success_rate": 0.95,
      "how": "Create the graph first: GRAPH.CREATE mygraph. Then retry GRAPH.QUERY mygraph 'MATCH (n) RETURN n'.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If using RedisGraph v2.12+, enable auto-create: CONFIG SET graph.auto_create 1. Then GRAPH.QUERY will auto-create the graph.",
      "success_rate": 0.85,
      "how": "If using RedisGraph v2.12+, enable auto-create: CONFIG SET graph.auto_create 1. Then GRAPH.QUERY will auto-create the graph.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "先创建图：GRAPH.CREATE mygraph。然后重试 GRAPH.QUERY mygraph 'MATCH (n) RETURN n'。",
    "如果使用 RedisGraph v2.12+，启用自动创建：CONFIG SET graph.auto_create 1。然后 GRAPH.QUERY 将自动创建图。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://redis.io/docs/stack/graph/",
  "official_doc_section": null,
  "error_code": "ERR",
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.92,
  "resolvable": "true",
  "first_seen": "2024-02-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}