Replies: 1 comment 1 reply
-
Does your project depend on |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I am working on a project with dgs codegen plugin.
one of the type defined in the schema file is
and
and in my build.gradle i added type mapping as
However, when i try to write a test class for the defined endpoints i get below errors bean has failed to be :
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dgsQueryExecutor' defined in com.netflix.graphql.dgs.autoconfig.DgsAutoConfiguration: Unsatisfied dependency expressed through method 'dgsQueryExecutor' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schema' defined in com.netflix.graphql.dgs.autoconfig.DgsAutoConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [graphql.schema.GraphQLSchema]: Factory method 'schema' threw exception; nested exception is SchemaProblem{errors=[The field type 'PersonConnection' is not present when resolving type 'Movie' [@40:1], The field type 'MessageConnection' is not present when resolving type 'Query' [@1:1], 'Person' [@47:1] tried to use an undeclared directive 'connection', 'Message' [@52:1] tried to use an undeclared directive 'connection']}
Test class looks like
I feel like i am missing something in build.gradle file but i cannot figure out what it is. I have searched for like dgscode gen test configuration but to no avail.
Beta Was this translation helpful? Give feedback.
All reactions