You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using fragment and fragment masking on a graphql field with type like [Film]! or [Film] typescript returns error about it cant find matching overload.
Which packages are impacted by your issue?
@graphql-codegen/client-preset
Describe the bug
When using fragment and fragment masking on a graphql field with type like
[Film]!
or[Film]
typescript returns error about it cant find matching overload.Your Example Website or App
https://codesandbox.io/p/devbox/gifted-brook-d5q8gx?workspaceId=ws_3UmFdMnhnojzcbNhGuKYwW
Steps to Reproduce the Bug or Issue
users: [User]!
User
and it's fragmentuseFragment
with User fragmentExpected behavior
No TS error
Screenshots or Videos
Platform
see repro
Codegen Config File
Additional context
I found out that there are no overloads for useFragment in generated
fragment-masking.ts
for arrays with nullable elementsThe text was updated successfully, but these errors were encountered: