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
Which means that type.getFields().foobar will always be treated as truthy, even if no such field exists in the schema, right? I feel like maybe I'm missing something, but I would have expected to get back something more like:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm wondering if the typescript types for
getFields()
is correct, because it is defined as returning this:Which means that
type.getFields().foobar
will always be treated as truthy, even if no such field exists in the schema, right? I feel like maybe I'm missing something, but I would have expected to get back something more like:Is this an issue, or something I'm misunderstanding?
Beta Was this translation helpful? Give feedback.
All reactions