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
{{ message }}
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.
This means that the resolver needs to return an explicit null value:
constresolvers={size: ()=>null}
However, graphqljs allows returning undefined for a nullable value.
This makes implementations easier, as we don't need to return an explicit null anymore.
To make this possible, the only difference is turning | null into ?:
If you have a type that includes an optional field, the following is generated right now:
This means that the resolver needs to return an explicit
null
value:However, graphqljs allows returning
undefined
for a nullable value.This makes implementations easier, as we don't need to return an explicit null anymore.
To make this possible, the only difference is turning
| null
into?
:I just tested it in TypeScript
2.9.2
-?
allows bothundefined
andnull
.The text was updated successfully, but these errors were encountered: