Transactional nested datafetchers #2004
Unanswered
yahyashqair
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
-
Hi guys,
I have an issue, where i want a way to open a single transaction(JPA transaction) for a query with all its nested datafetchers. for example
{
shows {
title
releaseYear
address
}
}
and Address is executed on a different method(datafetcher). How can i open one JPA transaction for all these methods. I saw there is a way to configure intercepters. which i think a way to manage that. but is it possible? what do you think?
Why i am asking that, In JPA first level caching works only on transaction boundary and opening more than one transaction will read the same data twice.
Beta Was this translation helpful? Give feedback.
All reactions