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

fix DeprecationWarning. insert is deprecated. Use insertOne. #7594

Merged
merged 1 commit into from May 8, 2021

Conversation

jiho-kr
Copy link
Contributor

@jiho-kr jiho-kr commented Apr 26, 2021

Removes warning messages that occur during migration.

This message only occurs when using MongoDB.

(node:47523) DeprecationWarning: collection.insert is deprecated. Use insertOne, insertMany or bulkWrite instead.

Description of change

collection.insert is deprecated. Change it to insertOne.

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run lint passes with this change
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change
  • The new commits follow conventions explained in CONTRIBUTING.md

@AlexMesser AlexMesser merged commit 83fed60 into typeorm:master May 8, 2021
@AlexMesser
Copy link
Collaborator

thank you for contribution!

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.

None yet

2 participants