verbb / navigation

A Craft CMS plugin to create navigation menus for your site.
Other
90 stars 23 forks source link

GraphQL: including customAttributes in a query results in an Internal Server Error #188

Closed daltonrooney closed 4 years ago

daltonrooney commented 4 years ago

Description Example query:

{
  node(id:86) {
    title
    customAttributes
  }
}

Result:

{
  "errors": [
    {
      "debugMessage": "Expected a value of type \"String\" but received: [{\"attribute\":\"activePath\",\"value\":\"get-info\"}]",
      "message": "Internal server error",
      "category": "internal",
      "locations": [
        {
          "line": 4,
          "column": 5
        }
      ],
      "path": [
        "node",
        "customAttributes"
      ]
    }
  ],
  "data": {
    "node": {
      "title": "Get Info",
      "customAttributes": null
    }
  }
}

Additional info

engram-design commented 4 years ago

Should be fixed in 1.3.30

Use:

{
  node(id: 86) {
    title
    customAttributes {
      attribute
      value
    }
  }
}