When a non-nullable Guid is returned from an API endpoint, it returns to the client as a stringified default Guid, which is full of 0s. This value is not falsy, so JavaScript clients would have to otherwise explicitly check for a default Guid value as a string in order to check for failure. Instead, Make the Guid nullable so that it can return null on failure, which the JS client would natively understand as falsy.
When a non-nullable
Guid
is returned from an API endpoint, it returns to the client as a stringified defaultGuid
, which is full of 0s. This value is not falsy, so JavaScript clients would have to otherwise explicitly check for a defaultGuid
value as a string in order to check for failure. Instead, Make theGuid
nullable so that it can returnnull
on failure, which the JS client would natively understand as falsy.