Closed swetharnaik closed 3 years ago
@knjk04 I have raised PR but I have some queries/issues that I found during development-
This was because the FetchType was LAZY. When I changed it to EAGER, I got the proper output as seen below
If these are valid issues that are currently present, can I make these changes?
@swetharnaik Thanks for raising the PR & apologies for the slow response. I'll get back to you on this.
@knjk04 Sure no problem.
Sorry for not getting back to you sooner.
Ideally, we would be using lazy for performance reasons. Are you able to get this to work if you just use a join?
That should be fine
@swetharnaik How are you getting on with this?
@knjk04 Apologies for the late reply. Will work on it this week. Need to integrate with latest updates and check.
@swetharnaik How are you getting on with this?
@swetharnaik Closing due to no response (as per our contributing guidelines)
Summary of change
Created an Award Entity which maps to Book having ManytoMany relationship. Added an Enum class, Updated SQL Script, Updated GraphQL Schema, Added test data. GraphQL Query Example- query { findByAwardName(awardName:"Nobel Prize in Literature") { title genre isbn13 yearOfPublication format } }
Related issue
Closes #15
Pull request checklist
Please keep this checklist in & ensure you have done the following:
[x] Read, understood and adhered to our contributing document.
[x] Read, understood and adhered to our style guide. A lot of our code reviews are spent on ensuring compliance with our style guide, so it would save a lot of time if this was adhered to from the outset.
[x] Filled in the summary, context (if applicable) and related issue section. Replace the square brackets and its placeholder content with your contents. For an example, see any merged in pull request
[x] Created a branch that has a descriptive name (what your branch is for in a few words and includes the issue number at the end, e.g.
test-reading-goal-123
[ ] Set this pull request to 'draft' if you are still working on it
[x] Resolved any merge conflicts
For any of the optional checkboxes (e.g. the screenshots one), still check it if it does not apply.
If in doubt, get in touch with us via our Slack workspace or by creating a new Q&A discussion on GitHub