Generate TypeScript Types from a GraphQL Schema

preview_player
Показать описание
Automatically generate types for your local or remote GraphQL schema, and operations for better type-safety.

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

These bite sized videos are the perfect way to explain a concept. Besides, it’s good that you use all of the guild tools rather than commercial tools like Apollo Graphql.
Thank you, Jamie! Always looking forward to your weekly contents.

xf
Автор

Hi, thanks for this video! Does this also account for aliasing within query fragments? Example query fragment with alias ("product" instead of "productData"):-
gql`
fragment productFields on ProductDataType {
product: productData {...}

Would the final generated type contain "product" per query fragment, instead of the "productData" per schema?

anand_naik
Автор

If you use a URL that requires an API key, how would you add that in as part of the codegen request? I'm using Supabase as my GraphQL server which requires the API key to be entered to obtain the schema.

brandonb
Автор

what if .graphql files changes or another type added to them. does it generate types itself again or should run codegen everytime something changed in graphql files?

mrzslr
Автор

Does this mean, to generate a typescript type, we always needs fragments, query and mutations ?

GauravYadav-rvwx