Skip to content
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

handling of relatedTo<XYZ> arguments in eager loading plans #16439

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Jan 15, 2025

Description

When querying elements via GraphQL and using one of the “special” relatedTo arguments (e.g. relatedToEntries, relatedToCategories etc.) with an empty value, if that argument is used for elements that would get eager loaded via a plan (e.g. getting children or ancestors), the argument name was making it into the query criteria causing an error (e.g. Setting unknown property: craft\\elements\\db\\EntryQuery::relatedToEntries").

Related issues

#16433

@i-just i-just requested a review from brandonkelly January 15, 2025 15:48
[ci skip]
@brandonkelly brandonkelly merged commit b1abfb3 into 4.x Jan 15, 2025
@brandonkelly brandonkelly deleted the bugfix/16433-gql-eager-loading-plans-and-relations branch January 15, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants