-
-
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
Upgrade codebase to GraphQL v16 #1331
Conversation
It's happening 😍🥳 |
It's coming!!! ❤️❤️❤️ |
nice! For anyone reading this - plz dont' forget to contribute $$$. |
Thanks so much for the hard work @MichalLytek! |
ccec633
to
b938986
Compare
this is great, thank you, I have asked the company that I work for to contribute to this project. |
@MichalLytek thank you! 🙌❤️ |
I thought @MichalLytek had died or moved out to the woods leaving all traces of nodejs behind, but he has risen with an amazing Draft PR for us to all admire. May the gods of nodejs bless this draft PR with speed, no bugs, and a quick merge. All kidding aside I really thought this project had died, and was just starting to plan our exit from type-graphql, but this PR gives me a warm fuzzy that we are headed in the right direction. |
@hkd987 Much like Keith Richards (of the rolling stones), @MichalLytek cannot be killed by conventional weapons. He is nearly indestructible. |
This is exciting 🚀 |
reflect-metadata Can it use something else instead because it doesn't support esm. It's old. |
Hi Michal, this is amazing work and thank you for this! I was doing some researches and I found that the current version of tGQL only works with graphql 15.3.0, just want to know if v2.0 will be compatible with any other 15.x version(ideally 15.5) or 16.x version? Thanks in advance! |
Yes it will, 16.6. check the diff. |
@productdevbook Please list something else we can use for shimming reflect metadata api |
|
@productdevbook Have you tried using that? TypeGraphQL doesn't force to use type-graphql/src/metadata/utils.ts Lines 60 to 68 in 91ca9b1
type-graphql/src/errors/ReflectMetadataMissingError.ts Lines 1 to 10 in 91ca9b1
Maybe we can just list abraham/reflection and core-js/es7/reflect in docs as the alternatives?
|
@vuki656 thanks much! sorry just one more question, do you know when will this be released? very excited about this |
I don't think there is a date. |
|
Hey @MichalLytek, I'm happy to contribute to this PR in case you need support! Would just need some guidance w.r.t what's still left to do |
If we work on #1356, @MaxAst can also get a contribution towards his hacktoberfest stats 💪 |
Any word @MichalLytek at what is left and how we might be able to help? I'm currently trying to create an Apollo server v4 Hapijs adapter, but looks like upgrading Apollo server pushes graphql to v16 and thus triggers this issue in the project I'm using to do the dev. |
If someone wants to help, please checkout the branch and run every example to see if all the presented features works ok. The one I've updated the codebase (like apollo federation or mikro-orm) should be checked but e.g. subscriptions might not work. |
Also, any documented changes to have an idea about the breaking changes? |
I have tried to upgrade my project which uses this library extensively to use (2.0-beta) and I think I found a small bug in It tries to check the prototype of |
@abjrcode Unfortunately, it's the only legit way to detect whether it's an arrow function or ES6 class. This check works for all other kind of checks, with middlewares too. |
Hi @MichalLytek , We have successfully upgraded to v2 beta and it works perfectly. Looking forward for the formal release. Thanks |
Been testing for a few days, no issues so far and we were able to migrate to Apollo 4 thanks to this! |
Same here. |
309e91f
to
acee2af
Compare
Can the beta version be considered stable? As in API changes? |
Awesome! 😎🥳 |
The PR has been renamed to GraphQL v16 support as that was the main scope of the changes. The work on the |
WIP