graffle-js/graffle

Results are not typed

Closed this issue · 4 comments

Screenshot

image

Description

Neither when I generate a client from introspecting a graphql api endpoint or if I refer to codegen created types, do I get the correct type back in the result. It only gives ConditionalSimplify<T, Error>

Can you share a repro?

Hey, if this is still an issue in the latest version please let me know. Thanks for your feedback and trying Graffle.

Hey, if this is still an issue in the latest version please let me know. Thanks for your feedback and trying Graffle.

Well iit's just that on the screenshot above. graphql-codegen types or manually typing does not give me back a typed result.

Just tried with the generated client and got the same

image

I need a failing case. Examples in this repo are not failing. Can you share your GraphQL schema and typescript config?