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

InsetMany #45

Open
Geo-M-Geo opened this issue Mar 10, 2023 · 1 comment
Open

InsetMany #45

Geo-M-Geo opened this issue Mar 10, 2023 · 1 comment

Comments

@Geo-M-Geo
Copy link

Hello, I have a problem when i try to insert the data and save it throw an error "return callback(new MongoBulkWriteError(err, new BulkWriteResult(bulkOperation.s.bulkResult)));" and "MongoBulkWriteError: user is not allowed to do action [insert] on [test.posts]"
I've tried a lot of things but nothing work even when i copy paste the code. Any idea ?

@atikvibs1326
Copy link

Check the permissions of the user you are using to connect to the MongoDB database. Make sure that the user has the necessary permissions to insert data into the "test.posts" collection.

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

No branches or pull requests

2 participants