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

[Laravel] Fix GraphQL Resolver Discovery #6855

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

toitzi
Copy link
Contributor

@toitzi toitzi commented Dec 9, 2024

Q A
Branch? 4.x
Tickets Closes #6854
License MIT
Doc PR -

Verified

This commit was signed with the committer’s verified signature.
toitzi Tobias Oitzinger
fix graphql resolvers, by also taking tagged resolvers into account and injecting them

Signed-off-by: Tobias Oitzinger <tobias@xcoorp.com>

return new ResolverProvider(
$app->make(GraphQlReadProvider::class),
new ServiceLocator($resolvers),
new ServiceLocator([...$resolvers, ...$taggedItemResolvers, ...$taggedCollectionResolvers]),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that we recommend to use state providers instead of resolvers for most usages.

@soyuka soyuka merged commit c899a3d into api-platform:4.0 Dec 9, 2024
59 checks passed
@soyuka
Copy link
Member

soyuka commented Dec 9, 2024

Thanks @toitzi !

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.

None yet

2 participants