Skip to content

Conversation

toitzi
Copy link
Contributor

@toitzi toitzi commented Dec 9, 2024

Q A
Branch? 4.x
Tickets Closes #6854
License MIT
Doc PR -
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

2 participants