-
-
Notifications
You must be signed in to change notification settings - Fork 677
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
fix: use schemaName instead of methodName when building field resolve… #1284
fix: use schemaName instead of methodName when building field resolve… #1284
Conversation
@dobrynin Thanks for your contribution 🙌 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1284 +/- ##
=======================================
Coverage 95.50% 95.50%
=======================================
Files 113 113
Lines 1848 1848
Branches 364 364
=======================================
Hits 1765 1765
Misses 83 83 ☔ View full report in Codecov by Sentry. |
@MichalLytek test added! |
a9acf5e
to
9bf9cb1
Compare
Hi @MichalLytek , is it possible to get an estimate for when this change can be merged + released? |
Please don't test metadata storage. It's implementation detail. |
9bf9cb1
to
6f26a00
Compare
Okay @MichalLytek , I've refactored the test to stop relying on metadata storage and moved the test to the |
Don't mean to nag you @MichalLytek, but please take a look at this one when you've had a chance. We'd like to stop using our fork of type-graphql :) |
I have a similar scenario currently, any news when this is integrated into the main branch @MichalLytek ? |
a190360
to
f50d1d0
Compare
@itpropro Sorry to keep you waiting so long for this simple fix, I constantly forgot to merge after rebase 😛 @dobrynin Can you check if your branch or PR still have enabled "allow edits from maintainers" setting? |
@MichalLytek I don't see any option to do that, I think it may not be possible unfortunately because the fork lives under an organization: https://github.com/orgs/community/discussions/5634 |
@dobrynin So could you rebase your branch and fix the lint issue (missing |
6f26a00
to
a9fab9e
Compare
@MichalLytek done |
@dobrynin Thank you very much for your contribution! ❤️ |
Hi! 👋
Firstly, thanks for your work on this project! 🙂
We are doing something more complicated, but I tried to boil it down to the essence of the issue below. Basically we have a mixin that adds very similar functionality that is parameterized by an argument
name
. We overwrite theschemaName
appropriately by passingname
to the field resolver, but when building the field resolver metadata, TypeGraphQL thinks that the subsequent field resolvers have already been added because it checks against the definition'smethodName
. I've run the test suite against the proposed change below,Simplified breaking code: