some types do not have `ofType` which causes thrown errors
pyramation opened this issue ยท 1 comments
pyramation commented
some types for one reason or another do not have an ofType
property. For example, the native postgres interval
type:
{__typename: "__Type", kind: "OBJECT", name: "Interval", ofType: null}
This is also the case of GeometryPoint
, and others.
The fix is to use fieldType.type.name
in the scenario where fieldType.type.ofType
is null. Additionally, using optional-chaining to avoid referencing properties on null objects #67
BowlingX commented
The release is available on:
Your semantic-release bot