Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update migrating_to_6.md about mongoose.modelSchemas #14919

Merged

Conversation

markstos
Copy link
Contributor

It was removed by this commit that first appeared in the 6.x series:

6865fea

My codebase only used this property for deleting models in a few places. Please peer-review the note
in case there are other uses of this property worth mentioning.

It was removed by this commit that first appeared in the 6.x series:

6865fea
@markstos
Copy link
Contributor Author

I may be wrong about recommending replacing delete mongoose.modelSchema.Foo with mongoose.deleteModel('Foo').

What's working better in my code base is just to delete the lines where we have delete mongoose.modelSchemas.Foo;

@vkarpov15 vkarpov15 added this to the 6.13.4 milestone Oct 4, 2024
Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@vkarpov15 vkarpov15 merged commit c068e2f into Automattic:6.x Oct 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants