We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The includeSubfolders parameter in GraphQL does not seem to work when querying assets.
includeSubfolders
The description of the parameter: Broadens the query results to include assets from any of the subfolders of the folder specified by folderId.
I discovered this on a project I was working on, and confirmed it in a freshly created project.
query MyQuery { assets(volume: "images", folderId: "4", includeSubfolders: true) { ... on images_Asset { id title } } }
This query should return all the assets in the folder with id 4, as well as assets in any subfolders.
Only the assets in the folder with id 4 are returned.
5.6.14
8.3
No response
mysql 8.0
The text was updated successfully, but these errors were encountered:
3255e8c
Thanks for reporting that! Fixed for the next Craft 4 and 5 releases.
Sorry, something went wrong.
Craft 4.14.13 and 5.6.15 are out with that fix.
No branches or pull requests
What happened?
Description
The
includeSubfolders
parameter in GraphQL does not seem to work when querying assets.The description of the parameter: Broadens the query results to include assets from any of the subfolders of the folder specified by folderId.
I discovered this on a project I was working on, and confirmed it in a freshly created project.
Steps to reproduce
Expected behavior
This query should return all the assets in the folder with id 4, as well as assets in any subfolders.
Actual behavior
Only the assets in the folder with id 4 are returned.
Craft CMS version
5.6.14
PHP version
8.3
Operating system and version
No response
Database type and version
mysql 8.0
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: