Is there any function in mongodb which performs like decode in oracle?

20 Views Asked by At
 <bean id="update" class="java.lang.String">
        <constructor-arg value="update deployment set
        status = decode(status,'CANCELED',status,'PAUSED',status,:status)
        ,end_ts =:endTimeStamp
        ,last_update_time = :now
        where deployment_id = :deploymentId"/>
    </bean>

This function does the inline column updation. I want to acheive similarly in spring-data-mongodb

0

There are 0 best solutions below