Skip to content

Latest commit

 

History

History
43 lines (41 loc) · 902 Bytes

README.md

File metadata and controls

43 lines (41 loc) · 902 Bytes

HotChocolate Fusion Bug

This repository demonstrates a bug in HotChocolate Fusion in which a variable name is included twice in the execution plan, causing an error

Usage

query getItems($groupId: String! = "groupId") {
  items(groupId: $groupId) {
    values(groupId: $groupId)
  }
}

The response is as following:

{
  "errors": [
    {
      "message": "Cannot return null for non-nullable field.",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "items"
      ],
      "extensions": {
        "code": "HC0018"
      }
    },
    {
      "message": "An item with the same key has already been added. Key: groupId",
      "extensions": {
        "code": "HC0012"
      }
    }
  ]
}