GraphQL return null for undefined values
If you assign a variable to undefined in Javascript, when querying that using GraphQL the variable will return {}.
Basically, will only return null when the value is null or absent altogether. In this particular scenario, the value (in MongoDB) is
{ "value" :
{
"$undefined": true
}
}
This will return {}
Could we change this to return null as well?
1
vote
