Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Results are not typed #1106

Open
sorenhoyer opened this issue Sep 18, 2024 · 4 comments
Open

Results are not typed #1106

sorenhoyer opened this issue Sep 18, 2024 · 4 comments

Comments

@sorenhoyer
Copy link

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>

@jasonkuhrt
Copy link
Owner

Can you share a repro?

@jasonkuhrt
Copy link
Owner

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

@sorenhoyer
Copy link
Author

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

@jasonkuhrt
Copy link
Owner

jasonkuhrt commented Sep 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants