For the following query on the given schema, the actual runtime type in the resolver for the a argument is undefined. It is only null if the argument is explicitly set to null, either via a default argument, or variable.
I guess this makes sense as in your resolvers you might have a database calls that updates a value that is either a string or null. If the argument is undefined that means the value must not be updated.
…all and has no default value.
closes https://github.com/sikanhe/gqtx/issues/34
For the following query on the given schema, the actual runtime type in the resolver for the
a
argument isundefined
. It is onlynull
if the argument is explicitly set tonull
, either via a default argument, or variable.I guess this makes sense as in your resolvers you might have a database calls that updates a value that is either a string or null. If the argument is undefined that means the value must not be updated.