-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Transparently ensure foreign key source field in inclusion resolvers #6496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transparently ensure foreign key source field in inclusion resolvers #6496
Conversation
c1316d4 to
5093027
Compare
Reviewing this after some time, I don't think the callback version is that bad. The impact on inclusion resolver implementation is minimal and all the madness is contained within
It did work with whatever I'd throw at it, including multiple relations. |
Signed-off-by: InvictusMB <invictusmb@gmail.com>
…n resolvers Signed-off-by: InvictusMB <invictusmb@gmail.com>
…n resolvers Signed-off-by: InvictusMB <invictusmb@gmail.com>
5093027 to
3a07dea
Compare
|
|
||
| fieldsAdded.forEach(f => (pruningMask[f] = undefined)); | ||
| return resolveEntities(newFilter); | ||
| }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am struggling to understand what is this code doing and what is the purpose of captureResult and captureInvocation. Let's try to find a simpler (less clever/smart) solution please, one that's easier to understand even to casual readers.
|
This pull request has been marked stale because it has not seen activity within two months. It will be closed within 14 days of being stale unless there is new activity. |
|
This pull request has been marked stale because it has not seen activity within two months. It will be closed within 14 days of being stale unless there is new activity. |
|
Not stale. I'll have time to refresh this soon. |
|
This pull request has been marked stale because it has not seen activity within two months. It will be closed within 14 days of being stale unless there is new activity. |
|
This pull request has been closed due to continued inactivity. If you are interested in finishing the proposed changes, then feel free to re-open this pull request or open a new one. |
Split from #5592
Checklist
npm testpasses on your machinepackages/cliwere updatedexamples/*were updated👉 Check out how to submit a PR 👈