DEV Community

Cover image for Announcing TypeGraphQL 1.0 🚀

Announcing TypeGraphQL 1.0 🚀

Michał Lytek on August 20, 2020

It's finally happening! Over two years after the initial announcement, TypeGraphQL is now ready for its first stable release - v1.0.0 🎉 It was a r...
Collapse
 
idoshamun profile image
Ido Shamun

Awesome work Michal! I used TypeGraphQL for a while and it's was super fun compared to the bare GraphQL and especially combined with TypeORM. Eventually I decided to drop TypeGraphQL because of the performance. This was before v1.0. Now I see that you improved the performance dramatically but still my feeling is that if I use several features of TypeGraphQL (e.g global resolver), I might have performance issues. Are you planning tackling this in the future?

Collapse
 
michallytek profile image
MichaÅ‚ Lytek • Edited

Are you planning tackling this in the future?

Yes, I've started working on TypeGraphQL vNext (2.0?) which is a complete rewrite of the internals to fulfill the minimal overhead goal, as well as to provide capabilities for implementing additional features or integrations easily, using the plugins concept. No ETA yet 😉

Collapse
 
idoshamun profile image
Ido Shamun

Looking forward! Please consider an option to use TypeGraphQL just for schema generation with any runtime overhead

Thread Thread
 
michallytek profile image
MichaÅ‚ Lytek • Edited

There always be some overhead (because of different method signatures while using @Args etc.) but will be as minimal as possible 😉

Thread Thread
 
idoshamun profile image
Ido Shamun

Yes, I agree. But it seems you are closing the gap!
Btw, why do you use grpahql-jit and not apollo?

Thread Thread
 
michallytek profile image
Michał Lytek

You can use jit with apollo but apollo is super slow as a http server:

apollo-server-express                 1238.6
apollo-server-fastify                 1383.6
apollo-server-fastify + graphql-jit   1740.6
fastify-gql + graphql-jit             5437.2
Enter fullscreen mode Exit fullscreen mode

github.com/benawad/node-graphql-be...

Thread Thread
 
idoshamun profile image
Ido Shamun

My combination is fastify with apollo. I use their Automatic persisted queries.
The table still shows that it should be pretty slow compared to jit. I need to check it out

Collapse
 
joaomelo profile image
joão

Hi, Michal. Beautiful work. I love the library. Congrats, and thank you!

Collapse
 
arslnb profile image
Arsalan Bashir

Hey Michal! Nice work! I was wondering what your thoughts are on using TypeGraphQL v1.0 in production and where I might find notes on upgrade instructions etc, if any :)

Collapse
 
michallytek profile image
Michał Lytek

There shouldn't be any troubles on using TypeGraphQL v1.0 in production.
Feel free to ask on Gitter if you find some issues while upgrading 😉

Collapse
 
2color profile image
Daniel Norman

Congratulations Michał!

Collapse
 
dnature profile image
Divine Hycenth

Decorators and Classes ++