In this blog post you mention a Next.js + TypeScript + GraphQL codegen tutorial and starter kit, but I cannot find any… Is this still in your plans? (That’s be awesome)
1 Like
Hello @jb
We don’t have a demo directly on the marketplace for that, but i did make a demo Repository that can be used with any DatoCMS project to generate Typescript types based on their models using GraphQL codegen: GitHub - marcelofinamorvieira/graphql-codegen-datocms-example: An example script on generating types using the DatoCMS GraphQL
To use it you just have to run npm install
then insert your token inside the file codegen.yml
and then run npm run generate
1 Like