private void encodeValueForUpsert(BsonWriter writer, T value, EncoderContext encoderContext) {
        encodeValue0(writer, value, encoderContext, true);
    }
Compared to {@link EntityCodec#encodeValue}, this method encodes null fields because we need
to overwrite existing fields to null if these fields are not specified in the entity for our
use cases.
turms-server-common/src/main/java/im/turms/server/common/storage/mongo/codec/EntityCodec.java