type-graphql-dataloader
type-graphql-dataloader copied to clipboard
upgraded to support @apollo/server 4.4.1
Do give this a try and let me know if it works! Basically we just have to change the Apollo plugin's read and write to contextValue instead of context. @slaypni @t2y Thanks so much for maintaining this gem of a library. It really saves my team a lot of time. 🙏
@t2y @slaypni it's a breaking change for sure, perhaps we could bump the major version number and older Apollo version users can still use the older version of type-graphql-dataloader 😉. We'll have to note it in README.md as well.
Hi @t2y @slaypni , as @geoyws mentioned, thank you for maintaining this library. It truly is a gem! I was wondering if there are any updates on the state of this PR? My team is migrating to Apollo Server v4 and incompatibility with this library is the only thing preventing us from migrating.
Would appreciate any updates. Again, thank you for the support and this PR!
@RodoVJ perhaps you could fork and apply the changes on my pull request while we wait for the merge. My team has been actually going into the node_modules and applying these changes manually each time we pnpm install (if from scratch). 😅
Thanks for the suggestion @geoyws 😅. We might resort to doing what your team is currently doing if we don't hear anything back soon :)
Just in case anyone wants to see where the .js code needs changing. 😬
My sincere apologies @slaypni , I didn't run the tests after putting in this PR. I foolishly assumed changing the plugin was all that mattered. I'm going to fix all the build errors and test errors first.
My sincere apologies @slaypni , I didn't run the tests after putting in this PR. I foolishly assumed changing the plugin was all that mattered. I'm going to fix all the build errors and test errors first.
We all are waiting for your PR! )) Thanx for u and other maintainers!
Can we please get this merged in?
Thank you @geoyws!
I really need this. Can we merge it? cc @slaypni @t2y
@geoyws, thanks for your implementation of the new apollo v4 plugin.
I searched and find an available npm package which can be installed by yarn add @ejekanshjain/type-graphql-dataloader.
Finally! After half a year of marathon work on my main job I finally have the time to run tests here and make sure they're passing. Sorry again everyone.
The tests are passing now so if the changes are acceptable, please consider accepting! 🙏🏼