has anybody created a graphql-binding? My goal is ...
# orm-help
a
has anybody created a graphql-binding? My goal is simply that one my microservices has a strongly typed API for calling my other microservices' graphql server
n
a
Sure. Those docs only give an overview, and don't talk about code genderation (which is what i'm most interested in). The docs on code generation make it sound like you first write a module which exports a class extending
Binding
Once you have implemented your UserServiceBinding class, the graphql-binding CLI helps you to generate the TypeScript type definitions for it.
I eventually figured out that you really need to export a schema, and code generation creates that
Binding
class for you (as I would have expected)
n
Hmm I see! Would you mind creating a PR for improving that wording? 🙂