@Lazy is not respected in resolvers #466
Replies: 5 comments
-
You're on a very old version of graphql-spring-boot-starter. We released version 8.0.0 today! Update that version too. The starter does not create the beans themselves, the Spring ecosystem is responsible for creating these beans as you've defined them, so don't see how this is caused by this library. |
Beta Was this translation helpful? Give feedback.
-
My project is large and currently has incompatibilities with new versions of this library and graphql library which I was not able to resolve yet. The Spring alone does respect |
Beta Was this translation helpful? Give feedback.
-
Knowing Spring I'd advise to try to move away from those |
Beta Was this translation helpful? Give feedback.
-
I do not use Sorry if it's not problem of this library. The architecture of it is not very clear for me of what is its dependencies and what is the job of each one. |
Beta Was this translation helpful? Give feedback.
-
In the stack trace, it's |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
If I declare a
@Component @Lazy
resolver (extends GraphQLQueryResolver
), its constructor is called in application startup and them all beans dependencies of this resolver are also resolved.To Reproduce
Declare a
GraphQLQueryResolver
with@Lazy
.Expected behavior
Should work as others lazy beans.
Desktop (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions