Closed jcrygier closed 7 years ago
Pushed simple caching solution, so each subsequent call would reference the same object. Not the most elegant solution, but it works.
Bumped version.
Great to see the issue resolved so quickly; it's funny, I'd thought of doing the same but figured that'd never get past code review.. ;)
Ha, yeah....I really want to pass a 'context' object thru so it's a bit cleaner...but that would have required a bunch of refactoring of some of the Java8 Function References.
The references will stick around in memory a bit longer this way, but i'm assuming it will be okay, as they're JPA references and Class references, that I'm guessing are permanently in memory anyway.
Attempts to upgrade to v3.0.0 lead to the following (from @timtebeek):
Caused by repeated invocations of this function for org.crygier.graphql.model.starwars.Episode: https://github.com/jcrygier/graphql-jpa/blob/master/src/main/java/org/crygier/graphql/GraphQLSchemaBuilder.java#L218