Closed gt-codes closed 2 years ago
There isn't a convenient way to get the types of inputs/outputs for queries/mutations.
Currently, I can get the output of a query like so:
I'm not sure how to get the input.
I like how tRPC has type helpers. Maybe we can achieve something similar. Here's a reference to tRPC's Inference Helpers
Problem
There isn't a convenient way to get the types of inputs/outputs for queries/mutations.
Currently, I can get the output of a query like so:
I'm not sure how to get the input.
Solution Description
I like how tRPC has type helpers. Maybe we can achieve something similar. Here's a reference to tRPC's Inference Helpers