liquibase-mongodb icon indicating copy to clipboard operation
liquibase-mongodb copied to clipboard

How to use Liquibase to update field in MongoDB refer to another field

Open sirisukjinta opened this issue 2 years ago • 0 comments

For example insertOne with { "id": "1",, "updatedDate1": ISODate("2021-06-01T19:06:40Z") "updatedDate2": ISODate("2022-02-22T22:02:22Z") }

I want to update "updatedDate1" with the value of "updatedDate2".

Expected result { "id": "1",, "updatedDate1": ISODate("2022-02-22T22:02:22Z") "updatedDate2": ISODate("2022-02-22T22:02:22Z") }

sirisukjinta avatar Mar 07 '22 04:03 sirisukjinta