Skip to content

Commit

Permalink
Merge pull request #660 from kfujita-cohere/unsetNullUpdatesOnEmbedde…
Browse files Browse the repository at this point in the history
…dFields

Persist null updates on embedded fields
  • Loading branch information
puneetbehl authored Nov 30, 2023
2 parents 0f898b4 + 9b9d756 commit bd56735
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ class PersistentEntityCodec extends BsonPersistentEntityCodec {
v.markDirty()
}

def embeddedUpdate = encodeUpdate(v)
def embeddedUpdate = encodeUpdate(v, createEntityAccess(v), DEFAULT_ENCODER_CONTEXT, true)
def embeddedSets = embeddedUpdate.get(MONGO_SET_OPERATOR)
if(embeddedSets != null) {

Expand Down

0 comments on commit bd56735

Please sign in to comment.