There were errors during a GraphQL execution.

Created on 14 April 2023, over 1 year ago
Updated 25 January 2024, 10 months ago

While building a simple query I get the following error.

query MyQuery($uuid: String!, $type: EntityType!) {
  entityByUuid(entityType: $type, uuid: $uuid) {
    uuid
    ... on NodeTvShow {
      id
      fieldPromotionalLinks {
        title
        uri {
          path
        }
      }
    }
  }
}
  "errors": [
    {
      "message": "Internal server error",
      "extensions": {
        "category": "internal"
      },
      "locations": [
        {
          "line": 8,
          "column": 9
        }
      ],
      "path": [
        "entityByUuid",
        "fieldPromotionalLinks",
        0,
        "uri"
      ]
    }
]

The error log

{
            "message": "Abstract type Url must resolve to an Object type at runtime for field FieldItemTypeLink.uri with value \"instance of Drupal\\Core\\Url\", received \"null\". Either the Url type should provide a \"resolveType\" function or each possible type should provide an \"isTypeOf\" function.",
            "locations": [
                {
                    "line": 8,
                    "column": 9
                }
            ],
            "path": [
                "entityByUuid",
                "fieldPromotionalLinks",
                0,
                "uri"
            ]
        },

Create a simple query that includes a field of type Link.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mcanada

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024