-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.x]: How to do eager loading of asset inside Matrix field entry type? #14819
Comments
Can you post the GraphQL query you’re using? |
Sure. The actual query is more elaborate and uses nested fragments but for the sake of simplicity, this query also returns an empty array:
|
Thanks! I was able to reproduce, and fixed for the next release. You can pull in the fix ahead of time by changing your |
Thanks! |
Craft 5.0.5 is out with that fix. Thanks again! |
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
The text was updated successfully, but these errors were encountered: