Just typing it out as it is or are you using some generators or other helper tools?
I write stuff like this: https://github.com/brianlovin/briOS/blob/main/src/graphql/queries/questions.ts and then graphql-codegen turns that into a strongly typed set of definitions and React hooks here: https://github.com/brianlovin/briOS/blob/main/src/graphql/types.generated.ts
I forgot to mention, I was more asking about the API / backend side of it :)
Got it — if you poke through those links, you'll land in the backend. I might not fully understand the question though. All the resolvers are written by hand, and there's definitely ways to make that process better. For example, I'm keeping an eye on https://nexus.prisma.io.