DEV Community

Discussion on: Announcing TypeGraphQL 1.0 🚀

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