sikanhe / gqtx

Code-first Typescript GraphQL Server without codegen or metaprogramming
458 stars 13 forks source link

Fix scalar arguments with default values #66

Closed Emilios1995 closed 2 years ago

Emilios1995 commented 2 years ago

The change I requested in #63 that was implemented in #65 broke arguments with a default value of scalar types. The reason is that we were excluding null from the final type of the arg's value that's passed to the resolver, but since scalars can now be undefined, the type had to exclude that possibility too.

sikanhe commented 2 years ago

Good catch