Skip to content
View slugcat-dev's full-sized avatar
Block or Report

Block or report slugcat-dev

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned

  1. cardboard cardboard Public

    Place virtual cards on a virtual canvas virtually anywhere

    Vue 1

  2. How I Restored My Database from a Me... How I Restored My Database from a Memory Dump.md
    1
    # How I Restored My Database from a Memory Dump
    2
    
                  
    3
    Yesterday evening, I was coding on my free-time project and dared touching some back-end code and a database schema.
    4
    
                  
    5
    I wanted to rename a key in a collection from `created` to `createdAt`, nothing complicated; Renaming a key in MongoDB normally is as simple as calling `Schema.updateMany({}, { $rename: { oldKeyName: 'newKeyName' } })`, but for some reason it didn't work. After [going through the docs](https://mongoosejs.com/docs/timestamps.html), I found out this was not possible for that specific key name: