{
  "id": "api/graphql-field-argument-type-mismatch",
  "signature": "GraphQL error: Argument \"limit\" has invalid value: expected type \"Int!\" but got \"String\"",
  "signature_zh": "GraphQL 错误：参数“limit”的值无效：期望类型“Int!”，但得到“String”",
  "regex": "Argument .* has invalid value: expected type .* but got",
  "domain": "api",
  "category": "type_error",
  "subcategory": null,
  "root_cause": "The client sent a GraphQL query or mutation with an argument value of the wrong type (e.g., string instead of integer).",
  "root_cause_type": "generic",
  "root_cause_zh": "客户端发送的 GraphQL 查询或变更中使用了错误类型的参数值（例如字符串而非整数）。",
  "versions": [
    {
      "version": "GraphQL June 2018",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Apollo Server v4",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "graphql-js v16",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "GraphQL strict typing rejects mismatched types unless coercion is explicitly defined.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Clients unaware of the custom scalar may still send strings.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Ensure the client sends the correct type: for integers, avoid quoting (e.g., `{ \"query\": \"query { items(limit: 10) { id } }\" }`).",
      "success_rate": 0.95,
      "how": "Ensure the client sends the correct type: for integers, avoid quoting (e.g., `{ \"query\": \"query { items(limit: 10) { id } }\" }`).",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a variable with a proper type definition: `query($limit: Int!) { items(limit: $limit) { id } }` and pass `{\"limit\": 10}` in the variables.",
      "success_rate": 0.9,
      "how": "Use a variable with a proper type definition: `query($limit: Int!) { items(limit: $limit) { id } }` and pass `{\"limit\": 10}` in the variables.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Ensure the client sends the correct type: for integers, avoid quoting (e.g., `{ \"query\": \"query { items(limit: 10) { id } }\" }`).",
    "Use a variable with a proper type definition: `query($limit: Int!) { items(limit: $limit) { id } }` and pass `{\"limit\": 10}` in the variables."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://graphql.org/learn/schema/#type-system",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2023-08-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}