You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(2) Create PublicationEvent-Object
No filter is specified here for the connection (it has been forgotten). The mutation works anyway. Both movie nodes are connected.
We've been able to confirm this bug using the steps to reproduce that you provided - many thanks @AccsoSG! 🙏 We will now prioritise the bug and address it appropriately.
Hey @AccsoSG, I'm honestly unsure whether we ever implemented cardinality checks for union relationships, it's something we need to go away and look at. But this could be a feature request as opposed to a bug in that sense. Thanks, happy holidays!
Describe the bug
With a To-1 relationship to a union, the library does not check whether only one node is actually connected.
Type definitions
To Reproduce
Steps to reproduce the behavior:
(1) Create movies and episodes
(2) Create PublicationEvent-Object
No filter is specified here for the connection (it has been forgotten). The mutation works anyway. Both movie nodes are connected.
However, only one movie node is returned. It appears undeterministic.
Expected behavior
When executing the second mutation, the following error message should be returned: PublicationEvent.product required exactly once
Screenshots
System (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: