LazyInitializationException with graphql-spring

前端 未结 6 1395
庸人自扰
庸人自扰 2020-12-31 04:21

I am currently in the middle of migrating my REST-Server to GraphQL (at least partly). Most of the work is done, but i stumbled upon this problem which i seem to be unable t

6条回答
  •  遥遥无期
    2020-12-31 04:56

    You just need to annotate your resolver classes with @Transactional. Then, entities returned from repositories will be able to lazily fetch data.

提交回复
热议问题