Doc.save() Creating new records not updating existing records

Share your code.

[Edit]

Existing value update for check your topic.

Thanks.