Skip to content

[4.13.7]: Descenants in GraphQL broke #16382

@kennethdenhollander

Description

@kennethdenhollander

What happened?

Description

Since update 4.13.7 there was a fix for GraphQL, however after this update trying a 'descendants' query, it always returns an empty result. We rolled back to version 4.13.5 and we got back an array of 'descendants' again.

Steps to reproduce

Create a similar GraphQL query in the GraphiQL like below and make sure to use a section that has hierarchy enabled.

query facilities {
  facilities: entries(section: "facilities") {
    id
    title
    descendants {
      id
    }
  }
}

Expected behavior

We expect an array of facilities returned on the 'descendants' property.

Actual behavior

There is never a descendant returned after version 4.13.7

Craft CMS version

4.13.7

PHP version

8.1.31

Operating system and version

Linux 4.18.0-513.9.1.lve.el8.x86_64

Database type and version

MariaDB 10.6.20

Image driver and version

Imagick 3.7.0 (ImageMagick 7.1.1-39)

Installed plugins and versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions