Component
API Server / GraphQL
Infrahub version
latest
Current Behavior
Mutation RelationshipAdd and RelationshipRemove seems to do not have check on cardinality and optional.
For example:
with RelationshipAdd I can add more than 1 parent to a child node:
https://www.loom.com/share/f86b7fdbb65046cfa7dc64daafe75fb6
with RelationshipRemove I can remove a mandatory relationship parent/child:
https://www.loom.com/share/2171cfe583d348f796f7d2c807d1839e
Expected Behavior
RelationshipAdd and RelationshipRemove should respect every schema's defined constraint.
Steps to Reproduce
with RelationshipAdd I can add more than 1 parent to a child node:
https://www.loom.com/share/f86b7fdbb65046cfa7dc64daafe75fb6
with RelationshipRemove I can remove a mandatory relationship parent/child:
https://www.loom.com/share/2171cfe583d348f796f7d2c807d1839e
Additional Information
No response
Component
API Server / GraphQL
Infrahub version
latest
Current Behavior
Mutation
RelationshipAddandRelationshipRemoveseems to do not have check oncardinalityandoptional.For example:
with
RelationshipAddI can add more than 1 parent to a child node:https://www.loom.com/share/f86b7fdbb65046cfa7dc64daafe75fb6
with
RelationshipRemoveI can remove a mandatory relationship parent/child:https://www.loom.com/share/2171cfe583d348f796f7d2c807d1839e
Expected Behavior
RelationshipAddandRelationshipRemoveshould respect every schema's defined constraint.Steps to Reproduce
with
RelationshipAddI can add more than 1 parent to a child node:https://www.loom.com/share/f86b7fdbb65046cfa7dc64daafe75fb6
with
RelationshipRemoveI can remove a mandatory relationship parent/child:https://www.loom.com/share/2171cfe583d348f796f7d2c807d1839e
Additional Information
No response