Skip to content

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