Replies: 4 comments 4 replies
-
I received these kinds of errors:
The propagation object type was defined with fields, but it seems to be looking at the actual class not the external type class |
Beta Was this translation helpful? Give feedback.
-
It's hard to say for sure without more details. Have you tried clearing your cache, whichever you've specified in your |
Beta Was this translation helpful? Give feedback.
-
I mean like this, we use php config <?php
declare(strict_types=1);
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
use Symfony\Config\GraphqliteConfig;
return static function (ContainerConfigurator $containerConfigurator, GraphqliteConfig $config): void {
$config
->namespace()
->controllers([
'Corp\Order\UI\GraphQL\Resolvers\\',
'Corp\Foo\Bar\Z\Resolvers\\',
])
->types([
'Corp\Order\UI\GraphQL\Types\\',
'Corp\Foo\Bar\Z\Types\\',
])
;
}; |
Beta Was this translation helpful? Give feedback.
-
Created issue here |
Beta Was this translation helpful? Give feedback.
-
I recently added a new namespace for types and controllers to the bundle config but got some weird errors related to not finding any fields for graphql types. Looks like the bundle was searching for types in the wrong directory. When i moved the code into the same namespace it all worked again, so I'm just wondering if there's a bug with the types finding logic when configured with multiple namespaces
Beta Was this translation helpful? Give feedback.
All reactions