How to make an argument optional? #1437
Unanswered
tippfelher
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Have you tried https://github.com/MichalLytek/type-graphql/blob/master/examples/enums-and-unions/resolver.ts#L17 |
Beta Was this translation helpful? Give feedback.
2 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.
-
My code
Problem: Argument is not made optional. Schema generated:
Expected: order can be undefined
Not a solution: Marking order as nullable because null is obviously not undefined.
Beta Was this translation helpful? Give feedback.
All reactions