Skip to content

[Feature]: Switch to get unpublished objects in inline fragments #484

Open
@ttheuerkauf

Description

@ttheuerkauf

Feature description

Currently there is no way to retrieve unpublished objects in inline fragments like this one:

grafik

In this example, GraphQL returns unpublished products, but no unpublished categories for the inline fragment. This may be correct for other users, but there seems to be no way to switch this behaviour, which would be especially useful for interfaces which do a comparison before saving an object.

Is there any way to set

\Pimcore\Model\DataObject::setHideUnpublished(false);

for a query with all of it's inline fragments?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions