Replies: 1 comment 3 replies
-
Technically it should be if (foo) {
bar();
} So for TS it makes no difference it it's only Moreover, declaring field as |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
e.g. from the type-graphql docs:
would it be more accurate/type-safe to include
null
in the field's type, i.e.I'm new to type-graphql but I think TS would be able to enforce better safety if the field type included
null
? If it doesn't matter, is there a simple explanation of why the GQL-relatednullable: true
is sufficient?Beta Was this translation helpful? Give feedback.
All reactions