dotansimha/graphql-code-generator ? reverse-engineered prompt
Reverse engineered prompt
Build me a GraphQL code generator that takes a schema and GraphQL operations like queries, mutations, subscriptions, and fragments, then spits out generated code I can use in my app or backend.
I want it to be easy to set up from the command line, with a simple init flow that asks for the schema, the documents to scan, and where to save the generated files. It should support different output styles through plugins, so I can generate things like typed helpers for TypeScript and other common frontend or backend use cases. Please make it flexible enough that people can add their own custom plugins too.
If you need to check current docs or examples online while building it, go ahead. I mainly want something that feels polished, works with real GraphQL projects, and makes it obvious what got generated and where to find it.
Are you gonna build this?
make sure you review the code using coderabbit