Skip to content
This repository was archived by the owner on Jun 29, 2021. It is now read-only.
This repository was archived by the owner on Jun 29, 2021. It is now read-only.

Both updatedBy and CreatedBy are getting updated after update operation on model object #424

Description

@manveetb

In Mongoose model I am using schemaOptions timestamps: true to enable the mongo to record the createdAt and updatedAt timestamps. I was under impression that createdAt will always remain same and will not change after update operations but it keeps on changing same as updatedAt even after update. Any suggestions on how to correct it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions