Closed wKich closed 11 months ago
Latest commit: d329856fc1f9313571f6019c6d060c56544eeafe
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
📣 NOTIFICATION You are receiving this message because we did not publish any packages.
Generated by @thefrontside/actions
Motivation
Currently, the resolver generated by relation directive mapper doesn't check existence of entities and just returns node ids of them. This cause an error when GraphQL tries to resolve non-null field, but fails, because there is no entity returned for that id.
Approach
Added simple check to existence of entities. Because in most cases user queries additional fields of node we load an entity anyway, so it should have negative effect on performance.