Generating Typescript Types for GraphQL Resolvers with graphqlgen

preview_player
Показать описание
Learn how to generate typescript types for GraphQL resolvers using graphqlgen, a tool by the Prisma team.

Links from video:

----

----

----

----
Follow Me Online Here:

#benawad

----
#benawad
Рекомендации по теме
Комментарии
Автор

Hi Ben,
After watching your airbnb series, I decided to switch from js to ts.
Did you ever managed to import .graphql file with the import syntax?
In my old project, I used babel-plugin-inline-import to be able to do import test from "./test.graphql", but can't seem to make it work on typescript.
Any idea where I could get some help?

Vaielab
Автор

Great video! I'm not really happy with gql2ts, however it seems that this graphqlgen doesn't support modularized schemas and models?

adamal
Автор

Hi ben great video as always...after checking it out, i am trying to integrate it in mygraphql typescript server based on your boilerplate tutorial series but instead of graphql yoga i went with apollo server 2. Do you know a way to integrate graphql gen with schema stiching? in the graphql typescript server tutorial you went with separating the schema into modules i did that too.

zehijean
Автор

Do you have in plans to improve the DX showed in 5:08 when you copy-paste the code from terminal?

majkel
Автор

Hi Ben, I generate the schema automatically from Prisma, but in my graphql-yoga server I use another additional schema with my mutations and custom types and I modularize my typeDefs, how could I do in the graphqlgen.yml file to use both schemas? Or I should unify them, thanks

difagume
Автор

Hi Ben, Do you prefer this to using gql2ts as in the AirBnB clone?

DrPanesar
Автор

why `context: ./src/types.ts:Context` in graphqlgen.yml? how does it work?

linuxyuking
Автор

Ben, Why not just add another video for the graphql-ts-server-boilerplate replacing gql2ts with graphqlgen? It will be helpful for many who would be following your backend series.
Regards
Ajay

nagarajay
Автор

Is this similar to Apollo Codegen? I got stuck trying apollo codegen attempting to convert my project to typescript :)

arvi