You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While creating simple project (Symfony 7.1) with sample query and resolver, Got an error "Could not find type with alias "Query". Did you forget to define it?"
class UserResolver { private $entityManager; public function __construct(EntityManagerInterface $entityManager) { $this->entityManager = $entityManager; } public function resolve(): array { return $this->entityManager->getRepository(User::class)->findAll(); } }
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While creating simple project (Symfony 7.1) with sample query and resolver, Got an error "Could not find type with alias "Query". Did you forget to define it?"
config/packages/overblog_graphql.yaml
config/graphql/type/Query.types.yaml
config/graphql/type/User.types.yaml
config/routes/graphql.yaml
App/GraphQL/Resolver/UserResolver
Beta Was this translation helpful? Give feedback.
All reactions