Skip to content

[4.x]: GraphQL Preview - Ancestor and Parent is missing #16327

@Latex88

Description

@Latex88

What happened?

Description

When querying a modified entry in preview mode using GraphQL, the expected parent or ancestor data for the entry is not being returned.

The Issue only seems to ocurr when multiple entries are returned from the query.

Steps to reproduce

  1. Edit an entry that has a defined parent.
  2. Make a GraphQL request using the preview token.
  3. Include parent and ancestor fields in the query.

Expected behavior

The query should return the modified entry along with its parent and ancestor data, reflecting the hierarchy.

Actual behavior

The response does not include the parent or ancestor data for the modified entry in preview mode.

Craft CMS version

4.12.3

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

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