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

Eager-load fields based on fields actually present in query #15684

Open
wants to merge 1 commit into
base: 5.5
Choose a base branch
from

Conversation

brandonkelly
Copy link
Member

Refactors how we resolve GraphQL field names to custom fields, so the fields in the element query are referenced rather than the global list of fields. That way any handle overrides can be accounted for.

@howells
Copy link

howells commented Sep 14, 2024

@brandonkelly hey Brandon - think I'm running into this issue right now; queries with handle overrides work perfectly in graphiql, but not via my gql API. I assume this is the fix I need, so how can I use it now?

@brandonkelly
Copy link
Member Author

@howells This fix only improves the efficiency of queries, and it’s not passing tests yet so I wouldn’t recommend using it.

Craft 5.4.2 fixed a bug related to overriding field handles. If you’re running 5.4.2+ and still experiencing an issue, please report it as a new GitHub issue.

@howells
Copy link

howells commented Sep 15, 2024

@brandonkelly no worries I got working again so can't have been related to this; a mystery.

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