Skip to content

[5.x]: How to do eager loading of asset inside Matrix field entry type? #14819

@agosman

Description

@agosman

What happened?

Description

When fetching a Matrix field via GraphQL, how would one also fetch nested asset fields inside of one of its entry types?
Currently, an empty array is returned. I suppose this has to do with having to define eager loading, but I can't find anything on it in the GraphQL API.

Thanks.

Craft CMS version

5.0.4

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