Updating Multiple data and Returning the updated data in same query

Hello,

we are planning to update and return the updated values as a result of multiple component values using a single update and return query if we are trying with multiple queries there are no issues and if we try with a single query we couldn't able to return the updated value. Is there any solution for multiple update statements using a single query? I am updating my query below:-

match (d:dpComponent)
call apoc.do.case([d.componentName="",'SET d.componentId = null return d',
d.componentKey="",'SET d.componentKey = null return d'],
'',{d:d}) YIELD value
RETURN value.d.componentName as Name, value.d.componentKey1 as Key