Why each scalar MakeNullable
?
#1672
Replies: 5 comments
-
https://gqty.dev/docs/intro/how-it-works#skeleton-render--values |
Beta Was this translation helpful? Give feedback.
-
@PabloSzx Can I disable this behaviour? I don't use react client at all. I'm using |
Beta Was this translation helpful? Give feedback.
-
https://gqty.dev/docs/client/helper-functions#type-casters You can use type casters, but read the warnings mentioned in the docs |
Beta Was this translation helpful? Give feedback.
-
@PabloSzx , I wonder, why is that not the default? I mean, the docs do mention: This next example is a perfectly safe place to use it,. |
Beta Was this translation helpful? Give feedback.
-
because in that example is safe to do, but that example doesn't cover all the possibilities of gqty usage, and the priority is giving type-safety, and in much other scenarios doing type-casting is not safe |
Beta Was this translation helpful? Give feedback.
-
I have a graphQL schema:
Details
As I see
Application.title
has a strongString!
type.But if I want to fetch it via
resolved
, I seestring | undefined
:The same via
useQuery()
:Why there
string | undefined
onString!
type?Beta Was this translation helpful? Give feedback.
All reactions