Return computed risk scores after update
Add inherentRiskScore and residualRiskScore to the mutation fragment so the Relay store gets updated scores. On the backend, use RETURNING to get the recomputed values from the database generated columns. Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -42,6 +42,10 @@ const RiskFragment = graphql`
|
||||
# eslint-disable-next-line relay/unused-fields
|
||||
residualImpact
|
||||
# eslint-disable-next-line relay/unused-fields
|
||||
inherentRiskScore
|
||||
# eslint-disable-next-line relay/unused-fields
|
||||
residualRiskScore
|
||||
# eslint-disable-next-line relay/unused-fields
|
||||
note
|
||||
owner {
|
||||
id
|
||||
|
||||
Reference in New Issue
Block a user