bug: relationship to generic peer with wrong identifier leads to graphql error #4207
Labels
group/backend
Issue related to the backend (API Server, Git Agent)
type/bug
Something isn't working as expected
Milestone
Component
API Server / GraphQL
Infrahub version
0.15.3
Current Behavior
When using the following schema:
It is possible to delete a
CloudInstance
that has aSuperBackup
linked to it.When it is deleted and we try to list SuperBackup nodes, the executed graphql query fails.
This issue doesn't happen when using the schema below because the deletion of the CloudInstance is denied/prevented.
Expected Behavior
Deletion of the CloudInstance node should be prevented?
Steps to Reproduce
Use the above schema.
Create a CloudInstance.
Create a SuperBackup linked to this CloudInstance.
Delete the CloudInstance.
List SuperBackups.
Additional Information
No response
The text was updated successfully, but these errors were encountered: