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

fix(graphql): type loader needs to return null #5467

Merged

Conversation

alanpoulain
Copy link
Member

Q A
Branch? 3.1
Tickets Fixes #5456
License MIT
Doc PR N/A

When a type is not found by the type loader, it needs to return null instead of throwing.

See webonyx/graphql-php#1336 (comment).

Doing this fix will solve #5456 because the Subscription type is requested when printing the schema (since GraphQL PHP 15.2 and the PR webonyx/graphql-php#1303).

@alanpoulain alanpoulain force-pushed the fix/graphql-type-loader-null branch from aec4367 to 6394189 Compare March 16, 2023 15:17
@alanpoulain alanpoulain merged commit 16a1a61 into api-platform:3.1 Mar 16, 2023
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.

1 participant