BowlingX/ra-postgraphile

some types do not have `ofType` which causes thrown errors

pyramation opened this issue ยท 1 comments

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

๐ŸŽ‰ This issue has been resolved in version 4.4.2 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€