Implementation-First GraphQL for TypeScript
Grats is still experimental. Feel free to try it out and give feedback, but they api is still in flux
What if building a GraphQL server were as simple as just writing functions?
When you write your GraphQL server in TypeScript, your fields and resovlers are already annotated with type information. Grats leverages your existing type annotations to automatically extract an executable GraphQL schema from your generic TypeScript resolver code.
By making your TypeScript implementation the source of truth, you never have to worry about valiating that your implementiaton matches your schema. Your implementation is your schema!
See CONTRIBUTING.md
in the repo root for details on how to make changes to this project.