How to prevent LazyInitializationException when this library is used with Spring JPA ? #1380
Unanswered
JoffreyB31
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Demo repo : https://github.com/JoffreyB31/graphql-spring-lazyexception-demo
Hello,
I started with a blank project with Spring Initializer + Spring JPA
Added this library as a dependency
The model used is a basic User entity which can have N Account entity
I have the following query and mutations :
Is it possible to query a nested lazy field with this library when using Spring JPA ? (without using a dataloader )
The things I have tried :
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions